Link to home
Start Free TrialLog in
Avatar of iziizi
iziizi

asked on

System.Web.AspNetHostingPermission failed error when building ASP.NET app

I have just set up a new server running Windows Server 2008 / IIS7.

I have set up a new virtual directory and my website displays and runs fine.

When I am on my dev machine and try and build the website, i get the following error:

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

I have tried giving my computer full try using caspol to the share where the website is located but doesnt seem to have helped.

Help much appreciated!
ASKER CERTIFIED SOLUTION
Avatar of Anurag Agarwal
Anurag Agarwal
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of iziizi
iziizi

ASKER

Thats the boy, thanks!!
Avatar of iziizi

ASKER

i spent ages googling, cant beleive i didnt come across that!