Mobile app version of vmapp.org
Login or Join
Hamaas447

: MVC4 App opens with directory listing and gives a 404 for any direct URL's entered in the browser I've just deployed a previously (on my local IIS) working MVC4 app to IIS 7.5 on the dev

@Hamaas447

Posted in: #AspNetMvc #Iis #Iis7 #Localhost

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.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Hamaas447

1 Comments

Sorted by latest first Latest Oldest Best

 

@Kimberly868

I see this error very often and here's the solution that we always provide to our customer. Please take a look at
www.smarterasp.net/support/KB/search.aspx?categoryid=0&search=mvc+404&type=0
The top 2 solution should fix your needs. And yes, I do work at smarterasp.net as a technical support staff in case you wonder.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme