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.