Dot character in ASP.NET MVC 3 route parameters

前端 未结 6 1969
忘掉有多难
忘掉有多难 2020-12-18 14:19

I have no custom routes in my application, only the default one. If i try to open localhost/myapp/controller/action/bla.bla it works fine on my machine (Windows

相关标签:
6条回答
  • 2020-12-18 14:58

    All the latest Windows updates (after SP1) seem to solve the issue.

    0 讨论(0)
  • 2020-12-18 15:11

    Is the application using any managed handlers that are mapped to the "*." extension? If so, check out this link:

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

    0 讨论(0)
  • 2020-12-18 15:12

    Please provide more detail, like what were the expected result, what errors do you get. Which solutions have you tried so far? Have you tried the configuration solution?

    <httpRuntime relaxedUrlToFileSystemMapping="true" />
    

    As to, "Why there is a difference between my machine and the production box"... Well my friend, that is a question only you can answer.

    0 讨论(0)
  • 2020-12-18 15:16

    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>
    
    0 讨论(0)
  • 2020-12-18 15:16

    Can you find what errors(exceptions) if any are you getting by seeing all first chance exceptions. This will show you how can find all the first chance exceptions your application is throwing.

    0 讨论(0)
  • 2020-12-18 15:19

    There is an new update available for Win2k8r2sp1, have a look at

    http://www.shanmcarthur.net/Default.aspx?DN=7d0cd525-bbc5-46c3-8096-95f93827aeea

    0 讨论(0)
提交回复
热议问题