Uh.. In fact, the problem is very simple.
You can look at this aunt wrote the blog post.
http://blog.csdn.net/chenguang79/article/details/7220232
If a Web site accesses IIS, it hangs up. On the access to the upper geology
It is also possible that the. NET version of the site is not selected. Please check:
Other than that.. If your MVC site configuration is complete, access is displayed.
Directory Listing Denied
This Virtual Directory does isn't allow contents to be listed.
Select Web Site-> Properties---configuration----Map with home directory
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll
One thing to note here,
Confirm that the file exists this check box, do not choose, why. Because in iis6,7 's version, he doesn't recognize the path setting in our routing.
We're usually all of them.
Public Static voidregisterroutes (routecollection routes) {routes. Ignoreroute ("{Resource}.axd/{*pathinfo}"); Routes. MapRoute ("Default",//Route name "{Controller}.aspx/{action}/{id}",//Everyone, if you choose the above check box, here you have to add the file extension, otherwise, will prompt you, the file does not exist New{controller ="Home", action ="Index", id =""}//Parameter Defaults);
Don't you want to configure your MVC route as above?
The IIS site cannot be accessed: Click the Browse IIS window to turn it off directly