If you try to deploy the MVC2 application at IIS 5.1 then normally it will not work properly. It could show you the following errors.
So what could be the ultimate solution to for this? Just Follow the below instructions and check that it works or not.
At first create a virtual directory and publish the project successfully. Then go to Internet Information Services and right click on virtual directory. Select Properties from the menu. A window will appear. Click on Configuration button.
After clicking on Configuration button a Application Configuration window will appear. Now select first Application Mapping and click on Edit button. A Add/Edit Application Extension Mapping window will appear. Copy the executable location from text box. Paste it into notepad. Click on cancel button.
Now click on Add button and once again Add/Edit Application Extension Mapping window will appear. Paste the executable location from notepad to executable text box. and write .* as extension. Also uncheck the Check that file exists. Now click on OK button.
At last just change the ASP.NET version to 4.0 from virtual directory properties.
Now try to run the site once again. It should work.
Powered by Facebook Comments