Tuesday, September 21, 2010

Blank page in ASP.NET MVC, IIS and Windows 7

You decide to move your web application from the internal web server to IIS under Windows 7, but observe nothing but a blank page.

Seems like it’s not enough to just add IIS from within Programs And Features – Turn Windows features on or off, but some additional tricks are required.

When activating World Wide Web Services within Turn Windows features on or off, remember to include:

  • HTTP Errors
  • HTTP Redirection

Even if ASP.NET is already selected, the following command line must be executed. Remember to run cmd as Administrator:

  1. %windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe –ir   

Resources:

2 comments:

Lars Corneliussen said...

Thank you very much! Took me hours to find "you" :-)

Still MS should have a look at that issue. Do you know if they know? :-)

Joseph Fluckiger said...

Nice article, fixed my blank screen of death. Thanks!