This article is a mirror article of machine translation, please click here to jump to the original article.

View: 15458|Reply: 0

[Web] mvc Directory Listing Denied This Virtual Directory does not allow contents t...

[Copy link]
Posted on 7/18/2017 8:58:37 AM | | | |
Directory Listing Denied
This Virtual Directory does not allow contents to be listed.
Server: Windows 2003 IIS 6.0
Site project: asp.net MVC4

Error message "The directory list is rejected, this virtual directory does not allow content to be listed. ”


Obviously, it's not a problem with the default homepage, there is no default homepage for any physical files in MVC


Moreover, this error sometimes happens, not when you start your website


The solution is as follows:

This is because you are missing a dll file,

Select Site - > Properties -> Home Directory -> Configuration -> Mapping

Insert the Wildcard Application Mapping below in the selection

C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll

Note here that

Confirm if the file exists this checkbox, never select why. Because in the IIS 6,7 version, he doesn't recognize the path settings in our Routing








Previous:php gets the header parameter of the request
Next:What exactly does an analytics zookeeper do?
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com