The directory or file specified does not exist on the Web server.

Posted by Guy on Stack Overflow See other posts from Stack Overflow or by Guy
Published on 2010-05-18T05:52:21Z Indexed on 2010/05/18 6:00 UTC
Read the original article Hit count: 1006

I have a hybrid asp.net web forms / mvc application that I recently converted to .net 4 with mvc2. I have set-up that application to run on IIS 7.5 (on Windows 7) and the web forms part of the site is running okay but the MVC part is not. Whenever I try and access a page that needs to go through the routing engine I get

HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
Module IIS Web Core
Notification MapRequestHandler
Handler StaticFile
Error Code 0x80070002

I'm debugging this web site through VS2010 (so I've set-it-up to use IIS instead of Cassini) and when I put a break point in the Application_Start function it is never hit so the routes are never registered. When I put a break point in the Page_Load function in one of the aspx page code-behinds it gets hit. So it seems that the problem is that the route is not being registered.

What am I missing?

© Stack Overflow or respective owner

Related posts about asp.net-mvc-2

Related posts about iis7.5