Visual Studio 2010 SP1 and 2012 added support for IIS Express eliminating the need to edit angle brackets.
- If you haven’t already, right-click a web-flavored project and select “Use IIS Express…”.
- Once complete, select the web project and press F4 to focus the Properties panel.
- Set the “Windows Authentication” property to Enabled, and the “Anonymous Authentication” property to Disabled.
I believe this solution is superior to the vikomall’s options.
- Option #1 is a global change for all IIS Express sites.
- Option #2 leaves development cruft in the web.config.
- Further, it will probably lead to an error when deployed to IIS 7.5 unless you follow the “unlock” procedure on your IIS server’s applicationHost.config.
The UI-based solution above uses site-specific location elements in IIS Express’s applicationHost.config leaving the app untouched.
More information here:
http://msdn.microsoft.com/en-us/magazine/hh288080.aspx