Hi,
One solution may to create a strong name for your
assemblies.
And inside your code do the following,
1) create the permissionset object.
2) create the StrongNameIdentityPermission with the
public key you have used in your assemblies.
3) Add the StrongNameIdentityPermission to the
permissionset object.
4) Call the Demand method, thus insuring all the callers
have the same strong name which essentially means all
your assemblies.
Also, you can look at the security tutorial which should
give you a jump start on Code Access Security..
http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/csref/html/vcwlksecuritytutorial.asp
Hope this helps...
Regards,
Madhu
MVP | MCSD.NET