A route named ‘swagger_docsswagger/docs/{apiVersion}’ is already in the route collection.

0
1500
Asked By William Rossbach On

I am getting this error when I try to run an existing project that seems to be building and running just fine for everyone else. Does anyone know what causes this issue and how to fix it? I would assume it is a local issue with my version of Visual Studio or something since the project runs just fine for everyone else.

The project is a standard ASP MVC API project and swagger is installed for the documentation of this API.

1 Answer

Answered By Dan On

Check to make sure you do not have a reference to a different ASP API or MVC project that is using swagger too. The reference will cause the default swagger config to conflict

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.