BUG: "HTTP 405" Error When Default Page is Requested

ID: Q191276


The information in this article applies to:


SYMPTOMS

The following error message is returned from the server when clients access remote-scripting enabled pages without specifying a URL that includes a file name:

HTTP 405 Error - Method Not Allowed


CAUSE

The Rs.htm file, commonly included when using remote scripting, uses window.location.href to determine the path to the current document when initiating a remote scripting call. If a user requests an URL from an Internet Information Server (IIS) server, and does not specify a specific file name, IIS often provides the contents of a default ASP or HTM page. Because the client page does not have a filename, the Remote Scripting call fails.


RESOLUTION

On the client, checking that window.location.href does not end with a trailing slash is sufficient to determine that the page can use remote scripting. On the server, a Response.Redirect to another page from the default page will provide a filename in the client browser and prevent the error.


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.

Additional query words:


Keywords          : kbScript kbVisID600 kbVisID600bug kbGrpASP 
Version           : WINDOWS:6.0
Platform          : WINDOWS 
Issue type        : kbbug 

Last Reviewed: May 24, 1999