有没有办法改变启动时ASP.NET Core web应用程序失败时显示的错误页面?
错误页面显示:“an error occurred while starting the application” 标题说:“Internal Server Error”
我不希望这个页面被用户看到。我想展示一个更加用户友好的页面。
发布于 2018-06-04 17:25:40
<configuration>
...
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="~/ErrorPages/Oops.aspx">
<error statusCode="500" redirect="~/ErrorPages/500.aspx" />
</customErrors>
...
</system.web>
</configuration>
https://stackoverflow.com/questions/-100004739
复制相似问题