Error: 404 – File or directory not found. The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
Description: An HTTP Internal Server error thrown by Internet Information Services (IIS) when requested for an ASP.NET or ASP page etc. This can be of many reasons like, file or file path trying to access does not exists, or file name got renamed, the Virtual Directory wrongly mapped etc.
Solution: Check the file trying to access exists or not in correct path or location. Check the file path configured or able to access correctly. Check the Virtual Directory configured correctly and proper permissions given. Check the files extensions etc.
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.
More Read: MSDN Blog, Technet