Hi All,
I am using visual studio 2010 to create a custom web part for Sharepoint 2010. I have created a blank sharepoint project and added a web part template.
Now when i write my code and right click on the project and say "Deploy" the DLL and WSP is deployed properly but it does not create SAFECONTROL entry in the web.config. I guess it should ideally create that entry. Am i missing out something ?
"Deploy" in visual studio does not create SAFECONTROL in web.config
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Vijay SettuRank #3,206 · 448 reputationPosted Jan 16, 2012, 3:23 AM EST
for create a safecontrol for a .wsp file code the data in web.config.
SafeControl Assembly="[Assembly Name]" Namespace="[Namespace]" TypeName="*" Safe="True" />Referrence Link: http://grounding.co.za/blogs/brett/archive/2008/05/23/sharepoint-register-an-assembly-as-a-safe-control-in-the-web-config-file.aspx