我想编辑我的“错误”页面,以便在抛出错误时显示原因。
而不是默认值:
Error. An error occurred while processing your request.
它会说例如:
Error. An error occurred while processing your request.
Reason: "Unable to connect to database 'MVCDatabase'."
有没有办法让“错误”视图显示这个?
我想编辑我的“错误”页面,以便在抛出错误时显示原因。
而不是默认值:
Error. An error occurred while processing your request.
它会说例如:
Error. An error occurred while processing your request.
Reason: "Unable to connect to database 'MVCDatabase'."
有没有办法让“错误”视图显示这个?