IE 9 script error -2147467259
I see a couple of questions here in reference to this error, but they don't seem to fit my situation.开发者_运维技巧
I have an asp.net web application which only works with IE (lots of quirks mode pages and IE specific javascript). It works fine with all IE versions up to and including IE 8. But with IE 9, when I load some of the pages I'm getting an error message that error -2147467259 occurred on the page at Line 1 Char 1. I can dismiss the error dialog and things work more or less ok, although I'm having some other problems which I'm trying to track down. I don't know if they're related or not. Has anyone seen errors like this on IE9 but not IE8 or earlier?
If you are writing specifically for IE, particularly older versions of IE, then your probably need to add a meta-tag to force client browser into compatibility mode. Try adding the following meta-tag:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >
精彩评论