Google

Welcome

Friday, June 10, 2005

+BreadCrumb Links for SPS Areas

Comments:
Hi when I tyr to upload a web part to my site and access it I get the 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 have added the webpart namespace and assembly to the safecontrols tag of the config file. Placed the dll in the global dll folder and the dwp file also. Still then its not working. Do you have any suggestions about it?  
You shouldn't place your webpart assembly in the GAC.

Place the webpart assembly in your server's BIN folder.

You should confirm the PKToken for the dll. Since you have it in the GAC already, get the PKT from the file Properties menu and make sure you've entered the correct string and version number in your safecontrols section. Once you confirmed, delete the dll from the GAC.

You must restart IIS -or use a custom app to reset the server configuration- in order to register the new webpart properly.

Finally, your security level may be an issue. If your webpart uses the OM, you need to set security to Medium at least.

Without going too crazy those are some options i can recommend to start.  
Post a Comment << Home