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