Hey All,
When I try and run an application I have installed locally, it works fine. At some point I need to download another dll and run that dll. When I try, this happens:
System.Security.SecurityException: Request for the permission of type 'System.DirectoryServices.DirectoryServicesPermiss ion, System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.
Now if I go to my .NET Framework 2.0 settings in Control Panel -> Administrative Tools -> .Net 2.0 -> Runtime security -> Code groups -> right click properties -> and set "Permission Set" to Fulltrust it works fine.
The issue is I will be installing this application, and I do not want to have to make users set their permission on every machine. Is there a nicer way to handle this, either through code, or by somehow getting the dll's I want to run to not throw a security exception?
Thanks!