Web-server – Javascript works everywhere else, except new server

iis-7javascriptweb-hostingweb-serverwindows-server-2008-r2

Server A: Windows Server 2008 R2, IIS 7, admin – me

Server B: Windows Server 2008 R2, IIS 7, admin – company server admin group

I have a Javascript file that works well on my local machine. The JS file also works on Server B. When loaded to Server A, the page returns the error "Unspecified error" with a go to line that doesn't mean much in either the HTML or the JS. When replaced with a JQuery file, that also works locally, and also works on Server B, I get a different error "Object Expected" again with a meaningless go to line.

There are bits of Javascript which are functional on the same site on Server A, so JS is not completely disabled.

I am aware that JS and JQuery are considered client-side languages, but in this case "Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth."

Are you, server fault'ers, aware of server configurations that would affect Javascript/JQuery performance?

Best Answer

What this probably means is that the server isn't returning the correct data when the .js file is requested.

It's called a client-side language because it is a client-side language; the javascript files are not executed in any way on the server; they're just text files with a different MIME type as far as it cares.

In Firebug or Chrome's dev tools, take a very careful look at the responses to the requests for the .js files when requested from both servers. Something's different between them.