WHAT ARE SAFE CONTROLS, AND WHAT TYPE OF INFORMATION, IS PLACED IN THAT ELEMENT IN A SHAREPOINT WEB.CONFIG FILE?

Arun Singh

Total Post:310

Points:1550
Posted by  Arun Singh
 1538  View(s)
Ratings:
Rate this:
  1. Arun Singh

    Post:310

    Points:1550
    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!