In the ASP.NET MVC 4 application, we set up the entire route for tracking:
routes.MapRoute( name: "UnKnown", url: "{*url}", defaults: new { controller = "CatchAll", action = "UnknownUrl" });
The UnknownUrl method in CatchAllController correctly loads its view into our development environment.
However, in IIS 7.5, a standard 404 page is displayed if a non-existent remote request arrives . a local request sent using RDP on the server itself works fine .
In web.config, tp is installed
<customErrors mode="Off"/>
What is the difference between a local call and a remote call? How can we get the MVC HttpHandler to catch these requests?
A hint might be that we were also unable to get IIS to show detailed 500 status messages when called remotely.
source share