简体   繁体   English

本地ASP.NET网站不能在没有Internet的情况下运行

[英]Local ASP.NET Website doesn't run without Internet

I created an ASP.NET web application in Visual Studio 2008. The website runs when I am connected to the Internet, but when I don't have Internet, it doesn't start (it just keeps on loading neverendlessly). 我在Visual Studio 2008中创建了一个ASP.NET Web应用程序。当我连接到Internet时,该网站运行,但是当我没有Internet时,它就无法启动(它只是无情地继续加载)。 This is an anomaly of some type: the website is local on my PC so it should run without Internet. 这是某种类型的异常:网站在我的PC上是本地的,因此它应该在没有Internet的情况下运行。 Any clues/suggestions will be appreciated. 任何线索/建议将不胜感激。 Thank you! 谢谢!

If you're using firefox and behind a proxy, you need to add localhost to your 'no proxy' list. 如果您使用的是Firefox并在代理后面,则需要将localhost添加到“无代理”列表中。 This is Tools -- Options -- Advanced -- Network -- Settings -- and add it to the list. 这是工具 - 选项 - 高级 - 网络 - 设置 - 并将其添加到列表中。 I'm fairly certain there's something similar for IE. 我很确定IE有类似的东西。

也许您正在使用一些外部资源:数据库,jQuery等JavaScript文件,统计脚本等。尝试删除它并检查页面是否加载。

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

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