Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a web application with some user controls and web pages develpoed in ASP .NET (C#).
I recently installed IIS 7.0 on my development machine. When I try to view any of the web pages in browser using the "View In Browser" menu option by right clicking in Visual Studio IDE, I am getting the below exception :

The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.


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

I do not have any pre-compiled dlls in my web project. Prior to the ISS 7.0 installation, everything worked fine.
I am using Visual Studio 2008 with .NET Framework 3.5


Thanks in advance,
Aryan.
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900