I need to pass a colon within an URL in ASP.NET, like "http://mywebapp.com/Portal:Main/". Wikipedia does this a lot, and colons are valid URL characters according to the RFC.
I've found this SO question and read through this blog post which covers the invalid characters filter in ASP.NET.
Using VS2010 Ultimate and trying with a new ASP.NET WebForms and a new ASP.NET MVC 2 project I always added this to my web.config:
<httpRuntime requestPathInvalidCharacters="" />
as well as this
<httpRuntime requestValidationMode="2.0"
requestPathInvalidCharacters=""
relaxedUrlToFileSystemMapping="true"
/>
But still, I always get a Error 400: Bad Gateway when accessing anything with a "special character" like http://localhost:2021/1%3As.aspx
or http://localhost:2021/1:s.aspx
The projects are definitely using .NET 4 runtime. Whats going wrong here?