Monday, October 10, 2011

Safe Control Entries in Web Config File

There may come a situation where we want to add a custom new safe control entry in web.config file. 

Create New Empty SharePoint Project.

Add new "Empty Element" in project.

Select the newly created element and press F4 to open properties window.

Click ellipse button against the "Safe Control Entries" property as shown in below image.

The safe control entry dialog opens as shown below.

Click "Add" This will add a new safe control entry. Set properties 
Name: name of safe control entry
Assembly: A strong assembly name, such as: MyFirstProject.MyFirstAssembly, Version=, Culture=neutral, PublicKeyToken=11e9bce111e9418c.
NameSpace: The fully-qualified namespace for the class/control
Safe: True

Add as many entries as you like.

No comments:

Post a Comment

Popular Posts