简体   繁体   English

ASP Boilerplate 始终显示默认错误消息

[英]ASP Boilerplate always shows the default error message

I am using ASP Boilerplate (MVC + Jquery) to develop two different online applications.我正在使用 ASP Boilerplate (MVC + Jquery) 开发两个不同的在线应用程序。 It works very good but there is a problem with ABP exception handler in both of them:它工作得很好,但是它们两个中的 ABP 异常处理程序都存在问题:

It always shows the default error message (An error has occurred. Error detail not sent by server) also in login validation.它始终显示默认错误消息(发生错误。服务器未发送错误详细信息)也在登录验证中。

How can I fix this problem?我该如何解决这个问题?

I tried to debug this error and I realized that the error format that returned from server side is not a valid ABP error format.我试图调试这个错误,我意识到从服务器端返回的错误格式不是有效的 ABP 错误格式。

please check in your web.config file that shoud be set to On请检查您的 web.config 文件,该文件应设置为

<customErrors mode="On" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM