简体   繁体   中英

HTTP Error 403.14 - Forbidden with Debug of ASP.NET Web Application

I'm trying to start ASP.NET Web Application

but I got this error with debug:

HTTP Error 403.14 - Forbidden The Web server is configured to not list
the contents of this directory.

Module
   DirectoryListingModule
Notification
   ExecuteRequestHandler
Handler
   StaticFile
Error Code
   0x00000000

Not sure if it exactly what I have to do, but as it shown, I must follow this instruction but when I'm trying to open IIS Manager on Windows 10, it says that the Windows cannot find 'inetmgr'.or 'inetmgr.exe'

So not sure what I have to do to figure out with this error.

Since it doesn't seem like you have the full IIS installed, try adding this into your web.config that lies within the directory you want to browse:

<system.webServer>
    <directoryBrowse enabled="true"/>
</system.webServer>

...at least so you can get past this problem. If you're doing this for debugging, fine, but you have to seriously consider whether this is really what you want to allow on a production server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM