Jan 15, 2009 04:00 PM|TheAgus|LINK
I have a .NET module that Handles .CustX files and performs some special processing.
The problem I'm running into is when I use the ampersand & in the file name, a
BAD REQUEST error is thrown.
http://MyWebsite.com/You&Me.custx will throw a BAD REQUEST error.
http://MyWebsite.com/You%26Me.custx will throw the same error.
I think this is being rejected by the .NET engine, and not IIS6.
I'm actually encoding the ampersand into the %26 string, but the request still gets rejected.
Please see this has nothing to do with a QueryString issue, it's the ampersand in the actual file name.
The question is: Is there a way to use the ampersand in the URL, as shown in the examples above ?
I know there are several workarounds:
- Removing the ampersand.
- Replacing the ampersand.
- Hating the ampersand.
But I really want to know if there is a setting somewhere I can toggle for the .NET to start accepting the url encoded ampersand in the url.
Thanks for your help :)