question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Swagger gives me HTTP Error 403.14 - Forbidden

See original GitHub issue

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 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:closed
  • Created 8 years ago
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

10reactions
emsiucommented, Jul 14, 2017

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.

7reactions
rago99commented, Jun 28, 2018

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found