WebPart not registered as safe at this site

Last post 07-20-2008 12:52 PM by sumitrawat. 2 replies.

Sort Posts:

  • WebPart not registered as safe at this site

    04-13-2007, 5:33 AM
    • Member
      point Member
    • Sumit Sharma
    • Member since 04-13-2007, 9:28 AM
    • Posts 1

    Hello Everybody,

    I am very new to Sharepoint Development, I have created a web part for Sharepoint Server 2003, I am also able to successfully install the CAB project for the web part.

    But,when I try to drag the web part onto the page at the server I get 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", eventhough I've marked the web part as safe in the web.config file of the server, I also tried to change the security settings from WSS_minimal to WSS_medium ,but of no use.

     Has anyone encountered the problem before ?? Please help me out..

     

    Thanks,

    Sumit Sharma  

     

  • Re: WebPart not registered as safe at this site

    04-13-2007, 8:40 AM

    Just to clarify, the PublicKeyTockey, namespace and other attribs of the new config entry are correct. Double check the publicKeyTocket.

    Also, have you restarted IIS? I am assuming so, but just thought I'd check.

    Steve

  • Re: WebPart not registered as safe at this site

    07-20-2008, 12:52 PM
    • Member
      106 point Member
    • sumitrawat
    • Member since 07-20-2008, 10:58 AM
    • baltimore
    • Posts 13

    Where is you Webpart dll. One quick and dirty way to fix this is to install the dll in GAC. If you are accessing the code from other assembly then GAC it. After Gac'ing the the assemblies you will need to reset the IIS.

    Also try to register the assembly in <assmblies> tag in web.config. 

    sumit rawat
Page 1 of 1 (3 items)