Logo Ask the Experts!

Go Back Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Windows XP

MSXML 4 error: This method cannot be called after the send method.

Windows XP

Thread Tools Display Modes
Unread 27-08-2007, 06:49 PM   #1
Posts: n/a
MSXML 4 error: This method cannot be called after the send method.

Hi All,

I am using MSXML2.ServerXMLHTTP.4.0 (MSXML4.DLL v4.20.9841.0) in "classic"
ASP to Post a request from one IIS web site to another. The sites are located
on the same server. There are times when my XMLHTTP.send() command (and
sometimes other commands) fails with the error: "This method cannot be called
after the send method has been called". The error is caught in the JScript
code's "catch" block.

I have a JS file that contains the object declaration and the code that uses
it. This object/code is then used by a number of different pages and
processes. The order of steps in the code are:

// Define/Declare it
var m_XMLHTTP;
try {
m_XMLHTTP = new ActiveXObject( "MSXML2.ServerXMLHTTP.4.0" );
var lResolve = 20 * 1000;
var lConnect = 60 * 1000;
var lSend = 30 * 1000;
var lReceive = 35 * 1000;
m_XMLHTTP.setTimeouts(lResolve, lConnect, lSend, lReceive);
} catch(er) {
logServerError2(er, 'cannot create the m_XMLHTTP object')
m_XMLHTTP = 0;

// Open it"POST", sURL, bAsync);

// Set the request header for IE compatability

// Define an event handler for processing
m_XMLHTTP.onreadystatechange = xmlhttpReadyState;

// Send the XMLHTTP request to the back end

It has worked properly the majority of the time, but sometimes I get this
error numerous times in succession. I have an ASP page that includes an HTML
object containing Windows Media Player 9.2. I am playing a variety of .mpg
files in Media Player based on a back-end process that tells me which one to

I use the same m_XMLHTTP process to log application activities and status to
a text file. The error only seems to occur during times when there are a
number of calls (3 to 4) made in very close succession (within 0.5 seconds or
less time). As noted above, the call works the majority of the time, but
sometimes I get this error. I have been unsuccessful in finding the cause of
the error and what to do to fix it. Any suggestions or recommendations are

Thanks very much,

Phil M.

Sponsored Links

Thread Tools
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
IE7 default form method is now 'GET'.. why? Internet Explorer 1 28-08-2007 01:56 PM
MSXML 4 error: This method cannot be called after the send method. Phil_M Windows XP 0 27-08-2007 06:49 PM
need a good backup method or program Daniel - Sydney Windows XP 34 27-08-2007 06:37 PM
a new online earning method... CorpoAlert General Discussions 7 12-02-2007 02:18 PM
Wii Game Backup Method Revealed Dark Star Gamerz 0 17-01-2007 03:09 AM

< Home - Windows Help - MS Office Help - Hardware Support >

New To Site? Need Help?

All times are GMT. The time now is 06:36 AM.

vBulletin, Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © 2005-2016, All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional