简体   繁体   English

ASP.NET MVC 3.0 部署的代码在 IIS 7.5 的 IE8 中不起作用

[英]ASP.NET MVC 3.0 deployed code not working in IE8 in IIS 7.5

I have an ASP.NET MVC 3 app.我有一个 ASP.NET MVC 3 应用程序。 It is working fine in both IE8 & FF when we run VS2010.当我们运行 VS2010 时,它在 IE8 和 FF 中运行良好。 I have deployed this code in IIS 7.5.我已在 IIS 7.5 中部署此代码。 Now, the deployed app is working fine in FF, but not in IE8.现在,已部署的应用程序在 FF 中运行良好,但在 IE8 中却不行。 I am getting error:我收到错误:

Stop running this script?停止运行此脚本? A script on this page is causing Internet Explorer to run slowly...此页面上的脚本导致 Internet Explorer 运行缓慢...

See following screen-shot:请参阅以下屏幕截图:

在此处输入图像描述

I tested the published code in IIS6, It's working fine in both FF and IE8.我在 IIS6 中测试了已发布的代码,它在 FF 和 IE8 中都运行良好。

Any help is appreciated.任何帮助表示赞赏。

You are probably using some javascript which is entering a loop of some sort (possibly recursion)您可能正在使用一些 javascript 正在进入某种循环(可能是递归)

Either comment out one function at a time to see which function is the culprit, or do it in binary-search fashion and comment out half at a time to narrow it down.一次注释掉一个 function 以查看哪个 function 是罪魁祸首,或者以二进制搜索方式执行它并一次注释掉一半以缩小范围。

Finally, is there something out of the ordinary about your page?最后,你的页面有什么不寻常的地方吗? If the your javascript (or one of your libraries) was not the culprit, start ripping out chunks of your code to narrow the problem down.如果您的 javascript(或您的库之一)不是罪魁祸首,请开始删除代码块以缩小问题范围。

Unfortunately there is not a quick answer to this one...不幸的是,这个问题没有一个快速的答案......

There are various ways to try to determine what's going on with your JavaScript.有多种方法可以尝试确定 JavaScript 发生了什么。 Try reloading the browser.尝试重新加载浏览器。 You can also try downloading the Ajax profiling bits at http://archive.msdn.microsoft.com/AjaxView This can help determine your slow functions.您还可以尝试在http://archive.msdn.microsoft.com/AjaxView下载 Ajax 分析位,这可以帮助确定您的慢速功能。 You could also load up the JavaScript debugger and break into the code as well What nonstandard javascript libraries are you running?您还可以加载 JavaScript 调试器并闯入代码您正在运行哪些非标准 javascript 库? Any?任何?

Since your app runs differently seemingly only based on iis version differences compare a session on one to a session on the other using 'Fiddler'由于您的应用程序运行方式似乎仅基于 iis 版本差异,因此将 session 与另一个使用“提琴手”的 session 进行比较

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

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