招摇的UI部署后返回500 [英] swagger-ui returns 500 after deployment

查看:578
本文介绍了招摇的UI部署后返回500的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

开箱即用的配置完美的作品在我的机器上,都没有任何问题。

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

500:{消息:发生了错误。 } / API /招摇/文档/ V1

500 : { "Message": "An error has occurred." } /api/swagger/docs/v1


部署是默认Web站点/ API

即时猜测它的东西做的的baseUrl或类似的东西,
但我没有,甚至从哪里开始的想法。

Im guessing it has something to do with the baseUrl or something like that, but I have no idea of even where to begin.

我的路线在项目中正常使用 - 我可以打电话给我所有的WebAPI端点和他们作出正确的反应。

My routes work fine within the project - I can call all my webapi endpoints and they respond correctly.

任何帮助将非常AP preciated

any help would be much appreciated

推荐答案

在调试我使用调试配置(我已经产生了XmlComments为:属性 - >建立标签 - >输出 - > XML文档文件)

When debugging I was using the debug config (Which I had generated XmlComments for: Properties -> build tab -> Output -> XML Documentation File)

我没有这样做对我的发布配置(废话...) - 现在一切正常。

I had not done this for my release configuration (duh...) - now everything works

这篇关于招摇的UI部署后返回500的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆