Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Creating and adding new Web part

  Asked By: Roxanne    Date: Aug 18    Category: Sharepoint    Views: 4843

I try to add a new web part and am getting the below error.

A Web Part or Web Form Control on this Web Part Page cannot be displayed or
imported because it is not registered on this site as safe.

Please point me to the right direction. I have made the changes in the
web.config file already.



1 Answer Found

Answer #1    Answered By: Bahadur Kotoky     Answered On: Aug 18

You need to generate a key for the DLL/webpart using snk.exe. You reference that
in the web.config on the IIS server (c:\inetpub\wwwroot) in the safecontrols
section. There's a description of this on MSDN on
msdn.microsoft.com/msdnmag/issues/04/08/WebParts/ in the section 'Web
Part Deployment and Distribution'

Didn't find what you were looking for? Find more on Creating and adding new Web part Or get search suggestion and latest updates.