Error: The Web Application Project ” is configured to use IIS. To access local IIS Web sites, you must run Visual Studio in the context of an administrator account.
Description: While trying to run the Visual Studio 2012, 2010, 2008 etc, we might get this error. Why we getting this error, the reason is there in Error itself. Because of the security model configured for IIS7 (am using). IIS7 configuration derives from NTFS ACLs on the distributed .config configuration files as well as Allow/Deny/Inherit logic of the configuration properties within the distributed .config hierarchy. So in order to run all the features, IIS requires administrative privileges. So if Visual Studio needs to access the web site hosted or pointed over IIS requires an administrator rights.
Solution: Multiple ways are there…
1. Right Click on VS, and Run as administrator.
2. Those who don’t want to access local IIS Web sites then edit the project, under node ProjectExtensions, VisualStudio, FlavorProperties, WebProjectProperties find node <UseIIS> and change the value to False. Reload the project.
3. Or, add more privileges to your logged in account from UAC.