Skip to content Skip to sidebar Skip to footer

Ie 9 Javascript Error C00c023f

I came across this error only on IE9: SCRIPT575: Could not complete the operation due to error c00c023f. The error happened on this line: if ((a.responseXML) && (a.ready

Solution 1:

I don't suppose your request is being aborted? A quick Googling found this blog post. It would seem that an aborted request in IE9 will give this error when trying to read any properties off of the XMLHttpRequest object.

From the post, their particular problem with this error code could be duplicated by:

  • Create a XMLHttpRequest object
  • Assign an onreadystatechanged event handler
  • Execute a request
  • Abort the request before the response has been handled

You will now see that the readystatechange handler will be called, with the readystate property set to '4'. Any attempt to read the XmlHttpRequest object properties will fail.

The author mitigates this problem by assigning an abort state to the request when the manual-abort is performed, and detecting it and returning before trying to read any other properties. Though this approach would only really work if you are performing the abort yourself.

A similar problem was documented on the this WebSync Google Groups post. Towards the end of the discussion there is an implication that this problem only occurs

if you've got the standards and IE9 rendering modes both set

Hope that points you in the right direction.

Solution 2:

Within the readyState==4 routine, include a try and catch similar to:

try {
    var response=xmlHttp.responseText;
    }
catch(e) {
    var response="Aborted";
}

We found that this to be the most successful resolution to the above.

Solution 3:

Switch the

if ((a.responseXML) && (a.readyState==4))

to

if ((a.readyState==4) && (a.responseXML))

As the order matters. it seems that on IE9 if the state is not 4, the responseXML and reponseText yield this error if being accessed (I have no clue why...)

Solution 4:

I was getting this error in my Framework. It only shows up in IE (go figure). I simply wrapped the response like below:

if(request.readyState == 4)
{
  // get responsevar response = request.responseText;
}

Solution 5:

It happens for me with IE9 when I read the "status" property prematurely (before readyState is 4 / DONE).

Post a Comment for "Ie 9 Javascript Error C00c023f"