Knowledge Base

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

PSS ID Number: 191276

Article Last Modified on 10/15/2002


The information in this article applies to:


This article was previously published under Q191276

SYMPTOMS

When clients access remote scripting-enabled pages without specifying a URL that includes a file name, the server returns the following error message:
HTTP 405 Error - Method Not Allowed

CAUSE

The Rs.htm file, which is commonly included when you use remote scripting, uses window.location.href to determine the path to the current document when you initiate a remote scripting call. If a user requests a URL from a Microsoft 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 file name, the remote scripting call fails.

RESOLUTION

To determine if the page can use remote scripting on the client, verify that window.location.href does not end with a trailing slash. To provide a file name in the client browser and prevent the error on the server, use a Response.Redirect to another page from the default page.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

Keywords: kbBug kbDSupport kbRemoteProg kbScript KB191276
Technology: kbAudDeveloper kbVisID600 kbVisIDsearch