home
/
developersection
/
interviews
/
what are safe controls, and what type of information, is placed in that element in a sharepoint web.config file?
When you deploy a Web Part to SharePoint, you must first make it as a safe control to use within SharePoint in the web.config file. Entries made in the safe controls element of SharePoint are encountered by the Share Point Handler object and will be loaded in the SharePoint environment properly, those not will not be loaded and will throw an error. In the generic safe control entry (this is general, there could be more), there is generally the Assembly name, the namespace, the public key token numeric, the type name, and the safe declaration (whether it is safe or not). There are other optional elements.
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
In the generic safe control entry (this is general, there could be more), there is generally the Assembly name, the namespace, the public key token numeric, the type name, and the safe declaration (whether it is safe or not). There are other optional elements.