Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Problem while adding a simple webpart to the site

  Asked By: Jim    Date: Mar 26    Category: Sharepoint    Views: 9172

I am trying to create a basic webpart that displays "Hello" message on my
website. I did everything according to the SharePoint SDK but getting the
following error message

"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."

Did anybody faced this problem,any solutions for this.



7 Answers Found

Answer #1    Answered By: Katy Patton     Answered On: Mar 26

You will usually see an error  after dragging the part  onto the webpart
page. Check the safeControl setting in the web.config. These
settings need to match the AssemblyInfo and public key token exactly

Answer #2    Answered By: Ana Payne     Answered On: Mar 26

ya i am seeing that erroe after dragging the part  onto the webpart
page. In which web.config file should i check. can u give me more details on

Answer #3    Answered By: Hema Hegde     Answered On: Mar 26

1. Errors loading the web  part are generally caused by The
signature on the Assembly. Verify the Public token attribute in safe
control with the value returned by sn.exe -T "Assembly Name".
2. by typos in the Namespace or TypeName attributes. Check that
those match the entries in assemblyInfo file.

Answer #4    Answered By: Lacey Daniels     Answered On: Mar 26

This error  is nomally because you have not configurered your
Manifest.xml, dwp and/or web.config files correctly.

Be 110% sure that the assembly name and type name are correct in the
mainfest.xml, dwp and web.config file.

Answer #5    Answered By: Megan Martin     Answered On: Mar 26

This is a generic error  which most of us get..
you have to add the <Assembly>Namespace
=[];PublicKeyToken=[];Version=[]</Assembly> entry to the .dwp file in the
Assembly tag,and then do the deployment.

Answer #6    Answered By: Donta Kirkland     Answered On: Mar 26

If you are using VS.NET 2005 ............You are sure to get
this error..............try with VS.NET 2003(.NET frameWork 1.1)

Answer #7    Answered By: Cade Velazquez     Answered On: Mar 26

When I ran into this problem, I was pointed to first service pack both WSS
and SPS

Then use the installassemblies tool from Microsoft to register your webpart

Didn't find what you were looking for? Find more on Problem while adding a simple webpart to the site Or get search suggestion and latest updates.