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

View: 18775|Reply: 1

[ASP.NET] asp.net mvc project appears Directory Listing Denied This Virtual Directory does not a...

[Copy link]
Posted on 11/19/2015 10:06:13 AM | | |
I did a project asp.net mvc4, deployed to IIS, and found that the Directory Listing Denied This Virtual Directory does not allow contents to be listed. error

The Internet says that there is no default start page, how to set the default start page for mvc projects?

Finally, I found out that it was .net reason, just re-register .net 4.0.

IS and .netfw4.0 installation order is from front to back, if you accidentally reverse it, it doesn't matter.
Open the program-run-cmd: Enter a command to re-register IIS
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i

One. Find C:\WINNT\MICROSOFT.NET\FRAMEWORK\V version number\ASPNET_REGIIS.EXE and double-click to run it
      Yes, it seems that DOS commands will not work.
Two. Start - Programs - Microsoft Visual Studio 2008 - Visual Studio Tools - Visual Studio 2008 Command Prompt Then type aspnet_regiis.exe -i OK to resolve 100%

The following is an explanatory information for aspnet_regiis.exe parameters:

-i - Install this version of ASP.NET and update the script mapping at the root of the IIS metadatabase and all script maps below the root. Upgrade existing low-version script mappings to this version. -ir - Install this version of ASP.NET, registration only. Do not update script mappings in IIS. -enable - When -enable is specified with -i or -ir, ASP.NET is also enabled in the IIS Security Console (IIS 6.0 or later). -s <path> - Install this version of the script map recursively at the specified path. Upgrade existing low-version script mappings to this version. For example, aspnet_regiis.exe -s W3SVC/1/ROOT/SampleApp1 -sn <path> - Install this version of the script map non-recursively in the path specified. Upgrade existing low-version script mappings to this version. -r - Install the script map for this version of the IIS metadatabase root location and all script maps below the root. Regardless of the current version, all existing script mappings are changed to this version. -u - Uninstall this version of ASP.NET. The existing script mapping to this version is remapped to the remaining highest ASP.NET versions installed on this machine. -ua - Uninstall all ASP.NET versions on the machine -k <path> - Recursively remove all script maps to any ASP.NET version from the specified path. For example, aspnet_regiis.exe -k W3SVC/1/ROOT/SampleApp1 -kn <path> - all script maps that are non-recursively removed from the specified path to any ASP.NET version. -lv - Lists all ASP.NET versions installed on the computer (including status and installation path). Status: Valid[ (Root)]| Invalid -lk - Lists all paths (along with versions) for all IIS metadatabase items that contain ASP.NET script mappings. Items that inherit ASP.NET script mapping from the parent are not displayed. -c - Install this version of the client script into the aspnet_client subdirectory of each IIS site directory. -e - Remove this version of the client script from the aspnet_client subdirectory of each IIS site directory. -ea - Remove all versions of client scripts from the aspnet_client subdirectory of each IIS site directory.






Previous:jquery listens for carriage return events
Next:SQL Prompt installation tutorial
Posted on 11/20/2015 9:58:16 AM |
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