I am using v1.13.0.0 MVC/Angular version of ASP.NET Boilerplate.
When I try to navigate to <a class="postlink" href="http://localhost:44371/swagger/ui/index">http://localhost:44371/swagger/ui/index</a> I get a swagger Error 500.
500 : {"message":"An error has occurred."} <a class="postlink" href="http://localhost:44371/swagger/docs/v1">http://localhost:44371/swagger/docs/v1</a>
In the debug console there is a message "Unable to Load SwaggerUI" index:136 coming from <a class="postlink" href="http://localhost:44371/swagger/ui/index.js">http://localhost:44371/swagger/ui/index.js</a>
Do you know what I have missed? Any suggestions I can try?
Thank you in advance.
2 Answer(s)
-
0
Hi,
Was it working before or is it the first time you try to enable swagger ui ? And can you see an error message when you try to enter this address " <a class="postlink" href="http://localhost:44371/swagger/docs/v1">http://localhost:44371/swagger/docs/v1</a>" to your browser's address bar ?
-
0
Yes, I had it working before and I just resolved the issue and wanted to share how it was solved.
To find the problem I turned off CustomErrors from the Web.config in the Web project to get a more detailed description of issue. From the detailed error message I learned the issue was related to my code having duplicate schemaIds.
Thank you for your assistance.