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

View: 14949|Reply: 1

[ASP.NET] MVC This Virtual Directory does not allow contents to be listed.

[Copy link]
Posted on 3/21/2017 8:09:12 PM | | | |
Directory Listing Denied


This Virtual Directory does not allow contents to be listed.


Everyone is familiar with configuring websites in IIS, and I don't think there are many brothers who don't, but when configuring asp.net MVC, there will be some problems. I will record the problems I encountered during the configuration for your reference.
My unit's server is Windows 2003 system, IIS6

Directory Listing DeniedThis Virtual Directory does not allow contents to be listed.



      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:WINDOWSMicrosoft.NETFramework 2.0.50727aspnet_isapi.dll
.NET 4.0 is: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll
        Note here that
        
       Confirm the presence of the documentThis checkbox should never be selectedWhy? Because in the IIS 6,7 version, he doesn't recognize the path settings in our Routing
      We generally are






Previous:The "host" header must be modified with the appropriate attributes or methods
Next:How to configure the server using HTTPS for self-visa and third-party CA certificates
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