Question

  • Creator
    Topic
  • #2167645

    The infamous IE runtime error “Line: 1 – Invalid Character”

    Locked

    by plogan73 ·

    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.

All Answers

  • Author
    Replies
    • #2939220

      Clarifications

      by plogan73 ·

      In reply to The infamous IE runtime error “Line: 1 – Invalid Character”

      Clarifications

    • #2939205

      Check the quotes in use….

      by thumbsup2 ·

      In reply to The infamous IE runtime error “Line: 1 – Invalid Character”

      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.

    • #2938923

      Script not found

      by carl87gt ·

      In reply to The infamous IE runtime error “Line: 1 – Invalid Character”

      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:

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

      . . . 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.

Viewing 2 reply threads