简体   繁体   中英

Error after changing web.config file

I am using Visual Studio 2013 Professional and I am trying out ASP.net.

After I try to make any changes to the web.config file and try to run the application, I get "HTTP Error 403.14 - Forbidden" error.

Please help.

Thanks

Most commonly this would be caused by not having the correct "default" document. For example the IIS server may be looking for default.aspx and you have created index.html .

This explains in more detail:

http://forums.iis.net/t/1207657.aspx?How+to+Fix+HTTP+Error+403+14+Forbidden+The+Web+server+is+configured+to+not+list+the+contents+of+this+directory+

Thanks all for the help.

It was a clumsy mistake from my side.

I was hitting the Debug button in VS when the config tab/file was open.

When I hit the run Debug button from the webform it is working fine.

Thanks all.

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