ASP.NET MVC 4 - Exception Handling Not Working

前端 未结 4 1468
执念已碎
执念已碎 2020-12-30 09:34

When an error occurs in my ASP.NET MVC 4 application, I would like to customize a view for the user depending on the type of error. For example, page not found or an except

4条回答
  •  旧巷少年郎
    2020-12-30 10:10

    I seem to recall that you had to call the page from a non-localhost IP address (typically another computer). And it has to be an IIS based server, not the built-in development server (so IIS or IIS Express, but then you have to configure IIS Express for external access, which is a pain).

    You can in fact debug it, you have to configure your local server on your debug computer to accept external requests, then call your local server from the remote server.

提交回复
热议问题