Andrew Maddison


Getting ASP.Net MVC 3 App Running on Windows 7 64bit.

I just had to re-setup IIS 7 on my local win 7 64 bit dev machine, these are roughly the steps I followed.

  1. Add IIS to windows - follow this guide here:
  2. Fire up Inetmgr (iis services manager) and delete the default website.
  3. Create a new website and point it at the root folder of my web project
  4. Browse to localhost
  5. See a permissions error and swear a bit. Then give the iis app pool account read permissions to the windows folder of your web project. In case you don’t know:
    • In window explorer right-click - properties
    • Security Tab - click “Edit” then “Add”.
    • Enter the name “IIS APPPOOL\yourapppoolname” where “yourapppoolname” is probably the same as your website name. This is the important incantation.
    • Click “check names” - OK, OK OK.
  6. Still get a permissions error - google a bit and follow these instructions:
    • open inetmgr again - click on your website.
    • Double click “authentication” under the IIS section.
    • right-click on “Anonymous authentication” and chose “Edit…” and choose “application pool identity”. OK.
  7. Get Error “HTTP Error 403.14 - Forbidden” “The Web server is configured to not list the contents of this directory.”
  8. Swear again, google again, follow these instructions:
    • Check which minor version of .Net 4 you have installed by looking in the folder “%windir%\Microsoft.NET\Framework64”
    • run the following command (64 bit):
      %windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -ir
      or (32 bit)
      %windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -ir
  9. Browse to localhost again. At least for me, at this stage it worked.