Point character in ASP.NET MVC 3 route options

I do not have custom routes in my application, only by default. If I try to open localhost/myapp/controller/action/bla.bla , it works fine on my machine (Windows 7 x32, both Cassini and IIS), but the server crashes (2008 R2 x64). Found a similar question , but the solution does not work. Also, I found this article where Eilon says that it is a special symbol for MVC, and it is “by design”. Why is there a difference between my machine and the production box and how to fix it?

Update : the problems site has ExtensionlessUrl-ISAPI-4.0_64bit and ExtensionlessUrl-Integrated-4.0 is enabled and displayed on "*.". There are no managed handlers in web.config. The patch mentioned by Dmitry is “not applicable to your computer”, probably because it is already installed with Service Pack 1 (SP1). I can confirm that 404 is being reported by ASP.NET MVC, not IIS, because I can see the request in Application_PreSendRequestHeaders. Moreover, if I attach a descendant of MvcRouteHandler with an overloaded GetHttpHandler () that registers all RouteData, it shows that "id" is correctly mapped to "bla.bla". Any ideas?

+2
source share
6 answers

All recent Windows updates (after SP1) seem to fix the problem.

0
source

Is the application using managed handlers that map to the "*" character. expansion? If so, check out this link:

http://support.microsoft.com/kb/980368

+3
source

This work for me:

 <system.webServer> <handlers> <add name="UrlRoutingHandler" type="System.Web.Routing.UrlRoutingHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" path="/Users/*" verb="GET"/> </handlers> </system.webServer> 
+2
source

Can you find what errors (exceptions), if any, see all exceptions of the first chance. This will show how you can find all the first random exceptions that your application throws.

+1
source

Please provide more details, as expected, what errors you received. What solutions have you tried? Have you tried the configuration solution?

 <httpRuntime relaxedUrlToFileSystemMapping="true" /> 

As for “Why is there a difference between my machine and the production box” ... Well, my friend, this is a question that you can answer.

0
source

Source: https://habr.com/ru/post/1210663/


All Articles