ActiveDirectory permission exception through a network share(hockblogs.net)

submitted by hockmanhockman(505) 3 years, 10 months ago

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.

add a comment |category: |Views: 4

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story