问题
在用 IdentityServer 和 ASP.NET Core 实现SSO的过程中,从客户端跳转到SSO认证中心的时候,认证中心报了如下错误。
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.
使用谷歌直男翻译之后变成这样:
错误。
处理您的请求时发生错误。
发展模式交换到开发环境将显示有关发生的错误的更详细信息。
不应在已部署的应用程序中启用开发环境,因为它可能导致向最终用户显示异常的敏感信息。对于本地调试,可以
通过将ASPNETCORE_ENVIRONMENT环境变量设置为Development并重新启动应用程序来启用开发环境。
是因为我没有开启Development模式吗?这样想的我去到launchSettings.json文件里面想进行更改,却发现本来就是Development模式。

最低0.47元/天 解锁文章
1030

被折叠的 条评论
为什么被折叠?



