Last post May 31, 2019 02:58 PM by lasseedsvik
May 30, 2019 01:12 AM|lasseedsvik|LINK
I've built a small Web API and I ran these commands:
PM> Install-Package Microsoft.AspNet.WebApi.WebHost
PM> Install-Package WebActivatorEx
PM> Install-Package Microsoft.AspNet.WebApi.Core
PM> Install-Package Swashbuckle.Core
PM> Install-Package Swashbuckle
Installed worked, but when I run it...... I cannot navigate to /swagger to see it work...
What might be wrong? It's like it's not running
May 30, 2019 05:44 AM|Brando ZWZ|LINK
According to your description, I have created an empty web application project and install the package according to your command. It works well.
Result as below:
I suggest you could post more details information about how you build your web api project.
Accoridng to this github
article, different application host environment need different swagger setting.
Do you have some special settings in the SwaggerConfig.cs file?
May 31, 2019 02:58 PM|lasseedsvik|LINK
I redid the project and now it works... not sure what was missing in the first one...