简体   繁体   English

IIS7 JavaScript错误仅在远程计算机上

[英]IIS7 javascript error on remote machine only

I have a working asp.net app with a lot of telerik controls, jQuery, dynamic data and lots of aax calls. 我有一个可运行的asp.net应用程序,其中包含许多telerik控件,jQuery,动态数据和许多aax调用。

On my dev machine everything runs fine. 在我的开发机上,一切运行正常。 No errors. 没有错误。 Deployed to the web server (iis7 on w2k8) the app runs fine when seen in IE on the server. 部署到Web服务器(w2k8上的iis7)后,该应用在服务器上的IE中运行良好。 But IE on any remote machine (tested on XP and Vista)) gives me a expected ';' 但是任何远程计算机上的IE(在XP和Vista上测试)都给了我一个期望的“;” javascript error? JavaScript错误? Most javascript seems to be working ok though. 大多数JavaScript似乎工作正常。 Anyone has seen this before or has a clue what might be wrong? 任何人以前都看过这个,或者有什么头绪可能是错误的? I think it must be a iis7 setting but what? 我认为它必须是iis7设置,但是呢?

Edit: Firefox does not give a javascript error, only IE (on 3 different machines) 编辑:Firefox不给出javascript错误,只有IE(在3台不同的计算机上)

Edit2: I found that one of my .js files was delivered to IE with the following code(it's part of class, but how does that headerinfo come there??????): Edit2:我发现我的.js文件之一是通过以下代码传递到IE的(这是类的一部分,但是headerinfo如何到达那里????):

    get_numVideos: function()
    {
        return this._numVideHTTP/1.1 200 OK
Content-Type: application/x-javascript
Last-Modified: ue;
    },

Henk.

IIS 7 should not be the source of your issue. IIS 7不应成为问题的根源。

For troubleshooting issus like this. 为了进行故障排除,像这样。 I suggest - From a remote machine - view source and put the URLs of all supporting JS scripts in IE to download them directly. 我建议-从远程计算机上-查看源并将所有支持JS脚本的URL放在IE中以直接下载它们。 One or more will probally give you an error message or, more likely, a permissions issue. 一个或多个可能会给您错误消息,或者更可能是权限问题。

Also - place the public- facing URL in the remote computer's Trusted Sites list. 另外-将面向公众的URL放置在远程计算机的“受信任的站点”列表中。 DOes the error still happen? 错误仍然会发生吗? From the webserver this would be trusted as an intranet site. 从Web服务器可以将其视为Intranet站点。 IE could be blocking something that it does not trust. IE可能阻止了它不信任的内容。 This will not solve your problem, but it will put you on the right path to solving the issue. 这不会解决您的问题,但是会为您提供解决问题的正确方法。

Good luck! 祝好运!

Use Fiddler to inspect the HTML and JavaScript returned by the server. 使用Fiddler检查服务器返回的HTML和JavaScript。 If IIS7 has somehow modified your pages, you'll see it. 如果IIS7以某种方式修改了您的页面,您将看到它。

After also experiencing encryption problems on the remote desktop connection to the webserver, I found the solution! 在与Web服务器的远程桌面连接上也遇到加密问题后,我找到了解决方案!

I appears that I had to disable IPv4 large send offload on my NIC. 看来我不得不在NIC上禁用IPv4大发送卸载。

So at the end it was not IIS7, or ASP.NET but a nic propery :( 所以最后不是IIS7或ASP.NET,而是一个nic属性:(

Henk 亨克

Are they running the same version if IE7? 如果使用IE7,它们是否运行相同的版本?

Are any of the scripts generating a 404 error? 是否有任何脚本会产生404错误?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM