Hi there,
Today I recieved the following error when starting a .NET application from a network share:
.NET 2.0 error: Request for the permission of type 'System.DirectoryServices.DirectoryServicesPermission, System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.
This error occurred when trying to run code that accessed the System.DirectoryServices namespace.
Thanks to Tim Huffam I was being able to fix this within seconds!
To work around this, just open up your .NET 2.0 security:
1. Start the .NET Framework 2.0 Configuration tool (from Administrative Tools).
2. Expand Runtime Security Policy.
3. Expand User - Code Groups and right-click on All_Code and select Properties.
4. On the Membership Condition tab make sure All Code is selected in the dropdownlist.
5. On the Permission Set tab make sure FullTrust is selected in the dropdownlist.
6. Click OK
7. Under Runtime Security Policy, expand Machine - Code Groups and right-click on All_Code and select Properties.
8. Perform steps 4 - 6.
Hope this is usefull!
gr,
Robbert