At the moment your web part DLL is in the app bin of your web application, that's why you need a SafeControl node in the web.config or modify the trust level and add a code access security to your web part deployment.
Otherwise you can deploy the DLL of your web part to the global assembly cache. The advantage is if you want your web part in different web apps you've just one source and it runs with full trust without modifying the trust level.
Main Topics
Browse All Topics





by: trax75Posted on 2009-10-29 at 04:22:53ID: 25692404
Hi,
you need a Safe-Control entry in yopur web.config file. Just take a look at the web.config of your websites, you will find some entries for safe controls already, copy one and chnage the name to your webpart.
cu
Torsten