BUG: HTTP 405 "Method Not Allowed" Error From Default DocumentID: Q216493
|
When browsing the default document without specifying the file name (for example, http://Server/Web/), the following error occurs if the Scripting Object Model (SOM) is enabled and a DTC event is called:
HTTP Error
405 Method Not Allowed
The method specified in the Request Line is not allowed for the resource identified by the request. Please ensure that you have the proper MIME type set up for the resource you are requesting.
Please contact the server's administrator if this problem persists.
When the Scripting Object Model is enabled for the page, a <FORM> tag , similar to the following is inserted in the page:
<FORM name=thisForm METHOD=post>
You can work around this bug one of two ways:
<%
Response.Redirect "mydefault.asp"
%>
<SCRIPT Language=JavaScript>
var loc = document.location.toString()
var loclen = loc.length
var filename = "default.asp" //name of default document
var filelen = filename.length
loc = loc.substring(loclen - filelen, loclen)
if (loc.toUpperCase() != filename.toUpperCase()) {
location.replace(filename)
}
</SCRIPT>
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.
Q191276 BUG: "HTTP 405" Error When Default Page is Requested
Additional query words:
Keywords : kbASP kbCtrl kbVisID600 kbVisID600bug kbGrpASP
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: March 4, 1999