简体   繁体   English

在Firefox中而不是IE中工作的ASP.NET页

[英]ASP.NET page working in Firefox and not in IE

We were deploying our ASP.NET web app onto a new production server today. 今天,我们正在将ASP.NET Web应用程序部署到新的生产服务器上。 In our test server, the pages were working fine on both IE and Firefox. 在我们的测试服务器中,这些页面在IE和Firefox上均正常运行。

But now in the production server the main welcome page loads and to enter the application which has a submit/enter button in it does not work in IE and shows a page not found exception. 但是现在在生产服务器中,加载了主要的欢迎页面,并进入其中具有“提交/输入”按钮的应用程序在IE中不起作用,并显示未找到页面的异常。

The same link is working fine in Firefox. 相同的链接在Firefox中工作正常。 We are using css and JavaScript and i have read that they may cause problems. 我们正在使用CSS和JavaScript,并且我读到它们可能会引起问题。

But i wonder how i did not have any issues with both IE/Firefox in my test server. 但是我想知道我的测试服务器中的IE / Firefox是否没有任何问题。

Please advice on how to solve this. 请提供有关如何解决此问题的建议。

您可以使用提琴手来比较两个浏览器发出的请求,并观察两者之间的区别。

You've probably got different proxy settings in each browser, check they these are the same. 您可能在每个浏览器中都有不同的代理设置,请检查它们是否相同。

I would guess that IE has been set up to use your corporate proxy, and that you need to either configure that proxy to be able to access the new production servers (are they in a DMZ?) or not put in a "bypass proxy for these urls" rule on your own computer... 我猜想IE已设置为使用您的公司代理,并且您需要配置该代理以能够访问新的生产服务器(它们在DMZ中吗?)或不放入“绕过代理”这些网址”规则在您自己的计算机上...

Check the URL in IE on the page that is giving the error. 在出现错误的页面上,检查IE中的URL。 Is it the correct URL? 网址正确吗? If not; 如果不; try to trace back why. 尝试追溯原因。 Is there maybe some javascript involved in setting the target URL? 设置目标网址可能涉及一些JavaScript吗? Then that would be the first place to start looking. 那将是第一个开始寻找的地方。

If it's all in server code, you may want to review the code and look for places where a HttpException is thrown. 如果全部在服务器代码中,则可能需要查看代码并查找抛出HttpException的位置。

You may also want to check the event log on the production server to see if there were any unhandled exceptions. 您可能还需要检查生产服务器上的事件日志,以查看是否存在任何未处理的异常。

One more thing that can trip you up is IE's security settings. IE的安全设置可能会使您失望。 A local test server may be viewed in the 'Local Intranet' or 'Trusted sites' security level while the production server maybe in the more restricted 'Internet' settings. 可以在“本地Intranet”或“受信任的站点”安全级别中查看本地测试服务器,而生产服务器则可以在更受限制的“ Internet”设置中查看。 Try adding the production site to the list of trusted sites and see if that helps. 尝试将生产站点添加到受信任站点列表中,看看是否有帮助。

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

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