Question Locked

The infamous IE runtime error "Line: 1 - Invalid Character"

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I've been getting this for about 2 weeks now (XP Pro w/IE7 SP2 with all updates except SP3 on an IBM/Lenovo T60) but only when accessing our company's web application! It happens with all versions of our app and no one else is getting this error. I've tried all the suggestions I've found so far on the web with one exception: I've not turned off script debugging because, as a developer, I of course *have* to have that on. It doesn't seem to cause a problem except for the harm it's doing to my sanity! It started in the middle of the day while doing a lot of start-stop web debugging with VS2008 and ASP/VBScript. Does anyone have a suggestion of how to either resolve or at least begin to isolate this? Thanks in advance.

3 replies

by thumbsup2

Make sure you have not used the single quote which is on the Tilde key (top left of keyboard) instead of the single quote on the double quote key (next to Enter key). In some editors, those two single quotes look exactly alike, but the interpreter sees they are different.

by carl87gt

This happens only in IE and not firefox and it only happens when a script isn't found and script debugging is turned on (both must be true).

So say you have a script called "myScript.js" and you have:

< script type="text/javascript" src="myScript.js">

no problem so far . . . but change it to:

< script type="text/javascript" src="yScript.js">

. . . and you will get the error because you have a path/filename that is not found. How to prevent this error? I have no idea - other than make sure the file is there! But I haven't figured out how to suppress the error when it does occur. Most users don't have script debuggers installed and enabled for IE but it is still a pain when it does occur.

This discussion is closed to new replies.