Last post May 05, 2005 12:59 PM by sivilian
Apr 13, 2005 06:52 AM|Mazdak.Mansoory|LINK
I've create a web part with visual studio 2003 and also create cab file for it. I deploy it stsadm.exe tool , It is also listed in Vistual Server Gallery but when I want to add it to my web control library I get this 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 upload the web part with this command line:
"%programfiles%\Common Files\Microsoft Shared\web server extensions\60\BIN\stsadm.exe" -o addwppack -force -globalinstall -filename "filename.cab"
I recieve no error in deploying and it is done successfully , even in Sharepoint Configuration Analayzer I see my control is register in safe control assemlies. So any idea what I miss here?
May 05, 2005 12:59 PM|sivilian|LINK
One possible reason is that the assembly and/or type name in your Manifest.xml file do not match that for your web part. Stsadm uses this informtion to add a line to the web.config file on your Sharepoint Server.
hope this helps,