Meeting the needs of your business from a distance

Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

by Mark Shiffer 17. October 2007 05:18
After moving my projects to a share on the server so that they could be automatically backed up (I have installed source control yet as Team Foundation Server is giving me fits about all sorts of stuff. That is one of the pickiest installs I have ever seen!), I started receiving the following error when I tried to compile my website: "Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed." I did a little searching and found that I could add full trust for the share at the machine level to solve the issue. The command was: CasPol.exe -q -m -ag 1.2 -url file://s:\Mark\* FullTrust -n s:\Mark -d "FullTrust granted to: s:\Mark".

A link to an MSDN blog with some more details is here

Tags: ,

Issues

Comments

Add comment


(Will show your Gravatar icon)

  Country flag


  • Comment
  • Preview
Loading



Copyright © 2001-2012 MS Consulting, Inc. All Rights Reserved.