Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Syntax error “illegal character” on loading MicrosoftAjax.js in Firefox but not in Chrome

  • Vastuseid pole
  • 3 on selline probleem
  • 5 views
more options

I get the following error but only in Firefox on loading an ASP.NET page:

SyntaxError: illegal character 1 MicrosoftAjax.js:1

If I try to debug this and load the source of MicrosoftAjax.js from the Firefox console I only get garbage characters which makes me guess this is some kind of encoding issue. However, I never get this issue in Chrome. I don't believe this is actually related to the MicrosoftAjax.js source file.

If I do a reload (F5) of the page in Firefox all JavaScript is loaded correctly and the page runs as expected.

Maybe someone already had a similar problem? I spent many hours looking for a solution with no luck.

(Some text on the screen-shot is in German but I think you get the point)

I get the following error but only in Firefox on loading an ASP.NET page: SyntaxError: illegal character 1 MicrosoftAjax.js:1 If I try to debug this and load the source of MicrosoftAjax.js from the Firefox console I only get garbage characters which makes me guess this is some kind of encoding issue. However, I never get this issue in Chrome. I don't believe this is actually related to the MicrosoftAjax.js source file. If I do a reload (F5) of the page in Firefox all JavaScript is loaded correctly and the page runs as expected. Maybe someone already had a similar problem? I spent many hours looking for a solution with no luck. (Some text on the screen-shot is in German but I think you get the point)