swagger-ui returns 500 after deployment

后端 未结 6 2192
夕颜
夕颜 2020-12-05 03:47

Out of the box configuration works perfectly on my machine, no problems at all.

But when I deploy to our test environment - I get the following message

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-05 04:21

    The accepted answer should be the first thing you try.

    However, I have my XML output set to go to App_Data\ and have my Swashbuckle configured to read from that directory, so, it doesn't matter which way it gets built: the xml files are going to 'be there'. Nevertheless, I was still getting the error...

    I found over at MSDN's forums @enough2012's answer:

    select "Remove additional files at destination" in the "File Publish Options" within the "Settings" pane of the Publish dialog.

    Worked like a charm!

提交回复
热议问题