I am trying to deploy custom web part using custom policy file. For
this I created a new policy file same as wss_medium security, and added
codegroup for my web part. I derived the PublicKeyBlob using secutil.exe
When I try to drag and place my custom web part on portal page, it
shows me error stating
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.
In my event log it logs an error stating
Failure in loading assembly: webpart, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=de247a751ebccaad
The web part works fine if I place the dll in GAC. In the web part is
accessing an web service which is not hosted on my system.
The IPermission block for it looks like this
<IPermission
class="WebPermission"
version="1">
<ConnectAccess>
<URI uri="$OriginHost$"/>
</ConnectAccess>
</IPermission>
What is that am doing wrong?