A Web Part or Web Form Control on this Web Part Page cannot be dis

A Web Part or Web Form Control on this Web Part Page cannot be dis

Post by Sm9obm5pZS » Fri, 09 Dec 2005 02:49:04


Hello!
I have created a web part for SPS using asp.net 1.1. I have followed all
the directions and created it with a strong name, update the web.config file
and set the trust level to full (its my development box). I then go to My
Site and can successfully upload the web part, drop it on my page and see it
work.

However, now I want to put in the web part gallery. I went to the Web
Part Gallery and selected "Upload Web Part". I successfully uploaded the web
part and it shows in the list. However, when I click on my newly added web
part 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.

What would cause this? Haven't I completed all the necessary step if I was
able to use the web part in My Site? Any advice greatly appreciated.

Thanks!
JM
 
 
 

A Web Part or Web Form Control on this Web Part Page cannot be dis

Post by TWVyb24gRn » Sat, 10 Dec 2005 17:16:04

look at this article how to deploy webpart (your problem is because your
webpart is not marked as safe control in the webconfig).

http://www.yqcomputer.com/

usually the best way is to create cab file and to add the manifest, dwp and
your primery output to the cab and then to deploy it with the stsadm tool.

meron fridman

please vote for this answer if you find it helpful