7/06/2006

System error: -1072896658 in IE

Problem:Recently my team reported a problem while integrating one of the Ajax features I developed. Whenever they try to access that feature, it throws up an error "System error: -1072896658". I was suprised because that is working fine when I access in my test environment. Later after debugging in the integration environment, I found out that the problem is with charset. While configuring the server environment, they mistakenly specified the charset as "UTF8" (instead of utf-8) and that is the culprit of this error. So, whenever the response is received in the browser and accessed using xhr.responseText, MSXMl.dll (MSXML component) is not able to interpret the response and throwing a system error.

Solution:By changing the charset to "utf-8", it started working absolutely fine.

20 comments:

Anonymous
said...

I also am getting this error (intermittently) when using MSXML or WinHTTP to download HTML pages from pbase.com. The files are HTML, not XML, and sometimes trying to retrieve the .ResponseText property triggers this error.

I resolved it by reading the Byte Array .ResponseBody instead, and writing it character by character into a string.

If you get this error when trying to read the .ResponseText property, try this instead:

This page deserves to be better referenced. I had the same problem using explorer7 ("System error: -1072896658") in all my applications while firefox was doing fine. I had to change "utf8" into "utf-8" in my php.ini as indicated, then everything was working fine again.Thanks.