Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Error in adding webparts

  Asked By: Stacey    Date: Jun 11    Category: Sharepoint    Views: 857

When I try to browse add webparts to a page, i get the following 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."

I've added the proper code to the web.config file, but still it is not working.



2 Answers Found

Answer #1    Answered By: Jennifer Jones     Answered On: Jun 11

You might want to start here Troubleshooting web  Parts and Deployment (http://www.devx.com/webdev/Article/29352/0)

Answer #2    Answered By: Annie Norris     Answered On: Jun 11

You will need to add  a SafeControl entry to your web.config. It can look
as simple as this:
<SafeControl Assembly="YourWebPartDll"
Namespace="YourWebPartNamespace" TypeName="*" />

Didn't find what you were looking for? Find more on Error in adding webparts Or get search suggestion and latest updates.