Getting SCRIPT1014: Invalid character in IE from local js file

I am developing a site that is stored locally and works great in all the browsers I tested, with the exception of any versions of IE. It gives me "SCRIPT1014: invalid character" for every js file that I included in the script -tags, for example, for example: <script src="Scripts/jquery-1.9.1.min.js"></script>

This causes the following error:

 SCRIPT1014: Invalid character jquery-1.9.1.min.js, line 1 character 1 

If I then clicked an error to view the file, that is, the developer tools, it looks like this:

 ?? I?%&/m?{J?J??t??`$ؐ@??????iG#)?*??eVe] f@ ?흼??{???{???;?N'????\fdl??J?ɞ!????~|?"???? 

etc.

I would like this to be a common problem (or people never viewed locally stored web pages, i.e.?), But I didn’t find much when searching, and what I found didn’t help. How to get around this?

+6
source share
1 answer

There is a similar problem here: SCRIPT1014: Invalid character

I would check the browser security settings for local scripts.

You can try adding this to your page and see if it works:

 <!-- saved from url=(0016)http://localhost --> 

or you can set the local intranet zone to low and disable protected mode if enabled.

http://msdn.microsoft.com/en-us/library/ms537628(v=vs.85).aspx

Edit: The answer in the comments is the cleared browser cache.

+6
source

All Articles