How to configure IIS in Windows 2008 R2 for debuging Visual Studio 2010 web projects

Coordinator
Oct 9, 2011 at 5:10 AM
Edited Oct 10, 2011 at 8:06 AM

1. Add Application pool in IIS for this web app.

2. In properties screen of webapp, make sure that the option "Use Local IIS Web Server" is checked.

3. Make sure that NT AUTHORITY\IUSR appears in Users folder SocialPhoto database.

4. Configure IIS to support ASP.NET 4

Run following commands in VS console:

  • 32-bit systems:
       
    "%windir%\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe" -i
  • 64-bit systems:
       
    "%windir%\Microsoft.NET\Framework64\v3.0\Windows Communication Foundation\ServiceModelReg.exe" -i
  • 32-bit systems:
       
    "%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe" -i -enable
  • 64-bit systems:
       
    "%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe" -i -enable