ASP.NET MVC Unable to start debugging on the web server. The web server could not find the requested resource.

04 Mar 2010

I was playing around with the project settings of an ASP.NET MVC project to get it working in IIS instead of using the built in Visual Studio web server when I started getting the message shown in the post title above whenever I started the project in debug mode.
After and hour of searching the internet for solution without success I decided to check IIS's Metabase.xml file and found for this particular virtual ASP.NET MVC application the wild card mapping was configured as below:

*,C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll,4,All"

whereas all over ASP.NET MVC projects had the following configuration:

*,C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll,0,All"

I am not entirely sure what it was that I did to create the issue but changing the 4 back to a 0 instantly solved the issue.
NB. To do this with IIS 6 running first open IIS manager, right click on the computer name node and select properties and check the Enable Direct Metabase Edit. Be warned; messing up this file could seriously damage the way IIS works so take a backup first. The Metabase.xml file can be found at c:\windows\system32\inetsrv


Update:
I found an article which gives the exact reason for the problem I was having. It seems that when the 'flag' is set to '4' it essentially means 'verify that the file exists before passing onto the scripting engine; if it doesn't then return an error'. To fix this in IIS manager simply highlight your wild card entry in the websites Configuration section of the Virtual Directory tab, click on edit and un-check the 'Verify file exists' checkbox.

Comments: 3

Jeff

Jeff

01 Sep 2013 - 11:30

The one hundred punods mark has been my goal too. I have 4 punods left to go.You have been doing great.I feel exactly the same about loose skin. Yes, it does tighten up somewhat.I read that if you eat a raw food diet you have less loose skin. Don't know if that is true.Good luck,marjie

Elena

Elena

08 Sep 2013 - 02:14

Thanks for the tip on Windows Media Player break up.I've been searching for this info since I got Windows 7.One thing heeovwr, on my machine it's Disable Sound Effects not Enhancements Thanks alot,Rick Daugherty http://kkjdtn.com [url=http://scqyilgt.com]scqyilgt[/url] [link=http://jyuxbqu.com]jyuxbqu[/link]

Margery

Margery

04 Mar 2014 - 03:50

QuotesChimp insure for direct physical loss to the property described in Coverage C caused by a peril listed below unless the loss is excluded in Section I�Exclusions ... etc.

Add comment

Categories

History