safecontrols

How to identify an unsafe web part / control

I get an error when trying to edit a page in a SharePoint site. Using WinDbg I see that actual error is: Microsoft.SharePoint.ApplicationRuntime.SafeControls+UnsafeControlException This looks to me like I have a control on the page which is not included in the <SafeControls> section of web.config. I've had a look at the aspx file f...

How can I determine whether or not a SafeControls entry already exists for a given assembly

I have several features which are deploying web parts into a given site sollection. The WSPs were built using the WSPBuilder add-in to Visual Studio 2008. Although the SafeControls entry is always created in the manifest.xml it is not always added to the web.config on deployment. I beleive this may be due to the fact that I have inclu...

Sharepoint web part: type could not be found/registered as safe

I have a SharePoint web part (essentially just a "Hello World" app) that I just created and am having a problem deploying it. I have signed the .dll, created the .dwp, and registered it as a safe control in web.config. I am able to add it to the Web Part Gallery and add the details for it; however, when I attempt to add it to a page, I g...

How to get a safecontrol entry into manifest.xml with WSPBuilder project

Upon taking the default sharepoint master page for MySite, making some changes, and making a wsp out of it with WSPBuilder, I come to these errors in my logs: http://spoint/MySite/%5Fcatalogs/masterpage/MySite.master - An unexpected error has been encountered in this Web Part. Error: The control with virtual path '_controltemplates/Wel...

Sharepoint 2010 register control as safe through wsp

I created a "Hello World" Sharepoint 2010 solution using VS2010. It contains just a feature, and a webpart containing a label. I registered the webpart as a safe control in the "Properties" window of the webpart, in VS2010. When I deploy my solution to my local server, everything works great! I can add the webpart to a page, and in the...