Swagger gives me HTTP Error 403.14 - Forbidden
See original GitHub issueI am trying to use Swagger with Web API. I am just using the “Azure API App” template from the ASP.NET 4.6 templates installed with Visual Studio, which includes the Swashbuckle.Core and the SwaggerConfig.cs. The API works fine (I am able to call it successfully), but if I try to go to “http://mybaseurl/swagger/”, I get this error:
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.
It seems like Swagger is not getting loaded or something. Anyone else get this before? I can’t seem to get around this. Thank you, and please let me know if I can provide more details.
Issue Analytics
- State:
- Created 8 years ago
- Comments:15 (2 by maintainers)
Top Results From Across the Web
Swagger gives me HTTP Error 403.14 - Forbidden
Just go to System Preferences > Sharing > Uncheck "AirPlay Receiver" at the bottom of the list. Then restart your .NET application, and...
Read more >Troubleshoot HTTP Error 403.14 – Forbidden in IIS
This error indicates that the appropriate level of the execute permission is not granted. To resolve this error, make sure the application pool ......
Read more >403 Forbidden Error viewing Swagger API documentation
I just tried this locally and can access the swagger docs with Windows Auth enabled.
Read more >C# – Swagger gives me HTTP Error 403.14 – Forbidden
I am trying to use Swagger with Web API. I am just using the "Azure API App" template from the ASP.NET 4.6 templates...
Read more >HTTP Error 403.14 when you open IIS webpages
Start IIS Manager. To do it, select Start, select Run, type inetmgr.exe, and then select OK. · In IIS Manager, expand server name,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sharing this fix as well for “HTTP Error 403.14 - Forbidden” that worked for me:
Delete the .vs folder that contains the applicationhost.config file and restart Visual Studio before trying to use Swagger again.
If someone has this problem of “403.14 - Forbidden” when using “/swagger”, but the use of the full path “/swagger/ui/index” works. In my case, after having spent too much time looking for a solution and none worked, in the end the problem was simpler that I thought, I had a folder called swagger in the solution, when I changed the name to something else the problem was solved. I hope this can prevent someone’s headaches