Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Creating and adding new Web part

  Asked By: Roxanne Horton         Date: Aug 18, 2007      Category: Sharepoint      Views: 466
 

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.

Tagged:            

 

1 Answer Found

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

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.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].