Using a colon (:) in a url with ASP.NET/IIS

前端 未结 8 2324
醉话见心
醉话见心 2020-12-05 19:14

I\'m implementing a custom controller in ASP.NET MVC and really want to be able to use a colon in the urls, so that I can identify class/column names and their valu

8条回答
  •  感情败类
    2020-12-05 19:53

    Try setting HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters\AllowRestrictedChars. This is from http://support.microsoft.com/?id=820129. I don't know whether ASP.NET/MVC does some checking on their own but if it's only http.sys blocking you, this should fix it.

提交回复
热议问题