Monday, May 2, 2011

Configure IIS 5.1 to work with MVC 3.0

For IIS versions greater than 5.1 configuring MVC will be taken care by the installer itself, however for IIS 5.1 its a bit tricky.
After struggling for hours I was finally able to make MVC 3 work on IIS 5.1 on Windows XP SP3.
Here are the simple steps to make it work for you as well.
1. Open IIS using Control Panel->Administrative Tools -> Internet Information Services.


or open from Start->Run


2. Drill down to the MVC website virtual folder hosted on IIS.


3. Select the folder and right click and select the properties.


4. Open the Virtual Directory Tab and press the Configuration button under Application Settings



5. Locate the Extension .aspx and copy its executable path.


6. Under Application Configuration, go to Mappings Tab, and press Add


7. Paste the executable path as copied earlier in the Executable field
8. In Extension textbox, enter ".*"
9. Ensure that the Script Engine and Check if File Exists are unchecked.
10. You'll notice that the OK button is disabled, go back to the extension tab and alas, the OK button becomes active.
11. Press OK and exit
12. Restart IIS
13. Browse your MVC application
14. Congratulations you've finished hosting your MVC 3 Application in IIS 5.1

4 comments:

  1. May I ask what .Net framework was used?

    ReplyDelete
  2. check here, it's almost same

    http://www.dconweb.com/category/discussions/

    ReplyDelete
    Replies
    1. Yes, but I posted in May,2011 and this one was posted last month.. :-)

      Delete