Closed chucklu closed 5 years ago
My demo project is on https://github.com/ChuckTest/AspNetWebApi2/ repository, branch owin-middleware.
https://github.com/ChuckTest/AspNetWebApi2/commits/owin-middleware
I am not sure if I have made something wrong, could you please take a look at it. Thanks in advance!
I have tried with failed request tracing https://docs.microsoft.com/en-us/iis/troubleshoot/using-failed-request-tracing/troubleshooting-failed-requests-using-tracing-in-iis-85
logs.zip you can check the log by Internet Explorer However the status is 200 instead of 500
What I got when I access the url from chrome is:
I find this problem caused by configuration problem. Configure the routing of the Swagger requests There are two ways to do this: I configure both of them, when I choose Pipe all request to the .NET pipeline, it works.
However, when I use second, Pipe only the Swagger request to the specific middlewares, still same error.
Thanks for the update, feel free to update the owin wiki if it may help others
I follow the steps by https://github.com/RSuter/NSwag/wiki/OWIN-Middleware
, and add app.config
still get error ,can not get swagger.json
My program is is Owin base on console ,are there any thing I miss?
@gitlsl You can upload your demo project to github, then I can check it for you. Or you can check the sample project first https://github.com/RSuter/NSwag/tree/master/samples/NSwag.Sample.NetOwinMiddleware
Hi, I am trying to configure NSwag according the tutorial https://github.com/RSuter/NSwag/wiki/OWIN-Middleware. However, after I did everything I can do, when I try to access my http://myserver/swagger/ .I just got a 500 error.