How to: Register a Web Part Assembly as a Safe Control

This procedure shows you how to register a Web Part as a safe control for use in Microsoft Windows SharePoint Services. For information on how to register a Web Part assembly, see Walkthrough: Creating a Basic SharePoint Web Part.

Warning

Changes that you make to web.config may be overwritten when you install updates or service packs for Windows SharePoint Services, or when you upgrade an installation to the next product version.

Procedure

To register a Web Part as a safe control

  • In the top-level web.config file of the deployment or virtual server, add a SafeControl element that specifies the Web Part.