RSS

Configuring IIS 5.1 to run an MVC application

12 Jan

When hosting a MVC application under IIS 5.1 there are a couple of small changes to make in order for your application to run.  Basically IIS 5.1 doesn’t know what to do with the extensionless URLs that are so common with MVC routing so we have to tell IIS that if one is encountered then to throw it at the Framework 4 aspnet_isapi.dll

To accomplish this first ensure that you have installed .NET Framework verison 4 

Next, invoke the IIS Manager under Administrative Tools and Right Click on the Virtual directory for your application and hit Properties.

Properties Window

 

On this screen Click the Configuration Button and you will be presented with the following popup window

Add/Edit Application Extension Mappings Window

 

The Executable should point to the aspnet_isapi.dll for .NET Framework 4.  This is normally found in C:\Windows\Microsoft.NET\Framework\v4.0.30319

Set the Extension to be .* and uncheck the ‘Check that file exists’ checkbox

If the Ok button is still disabled clikc in the Executable text box and the OK button should enable itself.  Little Microsoft Bug me thinks!!

Right Save your settings are restart IIS.

Your MVC Application should now run under IIS 5.1

Advertisements
 
2 Comments

Posted by on January 12, 2011 in Entity Framework, IIS, MVC

 

2 responses to “Configuring IIS 5.1 to run an MVC application

  1. Tlhogi

    October 21, 2013 at 11:37 am

    Thanks for the great solution, but how to we do this via a script?

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: