SharePoint 2013 Hosting UK – How to Add Safe Control Entry using elements file in SharePoint

In this article I will write about Add Safe Control Entry using elements file in SharePoint 2013. Recently I’ve discovered which it’s potential to add safe control entries through elements.xml file.

SharePoint-2013-Hosting

To do that, add an elements.xml file (or use an existing XML file). Then choose the elements.xml file and open up the properties window as shown below:

1Then click the… button next to (Safe Control Entries) as shown inside the above image. Then inside the safe control entries dialog click ‘Add’ and edit the namespace as show as below:

2

Finally, add the element xml file to some web/website scoped feature. As you’ll deploy the WSP, the safe control entry will certainly be added in web. config file.