.net core发布到CentOS中请求控制器时报错,提示开发模式什么的

AllenChoi0912 2017-05-27 04:50:49
Error.
An error occurred while processing your request.
Development Mode
Swapping to Development environment will display more detailed information about the error that occurred.

Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application.

以上是错误信息,求解答
...全文
1683 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
woanon 2017-09-04
  • 打赏
  • 举报
回复
你编译的时候,选的什么模式,你编译的dll是debug版?
水哥阿乐 2017-05-28
  • 打赏
  • 举报
回复
螃蟹都吃了,我等人只有观望
AllenChoi0912 2017-05-28
  • 打赏
  • 举报
回复
引用 4楼以专业开发人员为伍 的回复:
回到你这个“提示开发模式什么的”的问题,这个就是要你修改配置参数。看不懂就找找 core 的教程和书籍,如果找不到那就说明现在还不适合你使用。
我晓得他的意思是说开发模式不应该在部署的应用程序中,就是没找到办法解决
  • 打赏
  • 举报
回复
回到你这个“提示开发模式什么的”的问题,这个就是要你修改配置参数。看不懂就找找 core 的教程和书籍,如果找不到那就说明现在还不适合你使用。
  • 打赏
  • 举报
回复
你问问微软为什么这里的异常信息不显示中文呢? 等它成熟了再说吧。
AllenChoi0912 2017-05-28
  • 打赏
  • 举报
回复
引用 1楼自然有道 的回复:
螃蟹都吃了,我等人只有观望
你好,看着吃螃蟹的人

13,347

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 .NET技术前瞻
社区管理员
  • .NET技术前瞻社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧