MVC4 App opens with directory listing and gives a 404 for any direct URL's entered in the browser

Posted by ProfK on Pro Webmasters See other posts from Pro Webmasters or by ProfK
Published on 2013-02-13T10:52:51Z Indexed on 2013/11/13 16:19 UTC
Read the original article Hit count: 235485

Filed under:
|
|
|
|

I've just deployed a previously (on my local IIS) working MVC4 app to IIS 7.5 on the dev server. After tweaking this and that - one knows how these things get forgotten - the app finally launches, but shows a directory listing of the app root. Clicking on most links there works, opening the directory listing of the sub-directory.

Elmah logs no errors and /elmah.asd also gives a 404. The site has an appropriate localhost binding in the hosts file. I can find nothing wrong. MVC is installed on the server, as another MCV app works fine.

© Pro Webmasters or respective owner

Related posts about 404

Related posts about iis7