RE: Bad Request <OR> Illegal characters in path



Hello,

From your description, you're using custom ASP.NET handler to intercept the
gif extension requests, however, you found those urls with the following
like patter will result to 400 bad request error and you still got problem
even after applied the KB reference's solution ,correct?

Regarding on this issue, I've viewed that kb article and it does describes
the problem you meet. Actually, the problem should be raised by the
following particular characters which are by default not allowed in URL
path(not querystring):

* , %, :

Based on my research on some former issues, some one mentioned that an URL
Validator module of ASP.NET may perform validation against the url path. I
suggest you check whether your server has ever been installed this
validator module.

#ASP.NET ValidatePath Module Scanner
http://www.microsoft.com/downloads/details.aspx?FamilyID=be7366f5-82a1-444f-
9ebc-d70b6c8830dd&DisplayLang=en

In addition, to make the problem more concentrated, you may test it over
some other server machines. If the problem remains, you'd better directly
contact the CSS on this issue as the problem has been definitely documented
in the KB article:

Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

If there is any other findings, welcome to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.




--------------------

From: =?Utf-8?B?bmV4ZGV2ZWxvcGVy?= <nexdeveloper@xxxxxxxxxxxxxxxx>
Subject: Bad Request <OR> Illegal characters in path
Date: Thu, 4 Oct 2007 13:46:01 -0700


Here is my issue:

1) This is an ASP.NET 1.1 website hosted on Windows2003 Server
2) SP1 for .NET 1.1 is installed
3) I have the .gif extension mapped in IIS to the 1.1 aspnet_isapi.dll
4) I have an httphandler configured for the website:
<add verb="*" path="*.gif" type="myNamespace.myHandler,myHandler"/>

When I make this request:
http://mydomain.com/%2a%2b%2c%29%2e%21%20%28/image.gif

I get an error:
HTTP/1.1 400 Bad Request - Bad Request

I then added a registry key as described here:
http://support.microsoft.com/kb/826437

When that registry key exists the error changes to:
HTTP/1.1 500 Internal Server Error - Illegal characters in path

Is there any way to remove the HasIllegalCharacters check so that my
handler
can receive the request?


.



Relevant Pages

  • Re: SBS2000 server BSOD when local machine uses Citrix Client
    ... The links you posted often had specific drivers attached to the errors. ... MS debugging tools on a production server? ... > pageable memory at a process internal request level that was too ... A suggestion would be to contact Microsoft Customer Support Services ...
    (microsoft.public.windows.server.sbs)
  • RE: Server Response 550 5.7.1 Message Rejected even though we auth
    ... > whether the problem is caused by SMTP virtual server or not. ... > It is always recommended to keep Exchange running with the latest update. ... > sometimes need to request logon credentials, ... > Microsoft Online Partner Support ...
    (microsoft.public.exchange2000.admin)
  • Re: Semaphore limitations
    ... Do you spawn a thread per user to serivce the request? ... performance hint on the server. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Activesync by Air not working after adding second Sharepoint Site!
    ... a bad request to the server. ... Double Verify the Exchange server default Web site listener. ... Check if you are able to visit the OMA site from a client with IE. ... A suggestion would be to contact Microsoft Product Support Services via ...
    (microsoft.public.windows.server.sbs)
  • RE: SBS2000 server BSOD when local machine uses Citrix Client
    ... pageable memory at a process internal request level that was too ... Kernel-mode drivers are forbidden to access pageable memory at a high IRQL. ... 888825 The server restarts, and you receive a "STOP 0x000000D1" error ... A suggestion would be to contact Microsoft Customer Support Services via ...
    (microsoft.public.windows.server.sbs)