【发布时间】:2014-09-24 13:25:25
【问题描述】:
这是我的网络配置
<configuration>
<connectionStrings>
<add name="vmpcon" connectionString="data source=XXXXX;Database=XXXXX;User ID=sa;Password=XXXXX; Trusted_Connection=False;" providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
<authentication mode="Forms" />
</system.web>
</configuration>
当我从 chrome 和 IE 访问该网站时,我得到 empty page,当我从 FireFox 访问它时,我得到了
XML Parsing Error: no element found
Location: http://XXXXX:portNumber/index.aspx
Line Number 1, Column 1:
当我访问日志时,我发现了这个:
2014-09-24 13:18:41 IPXXXXX GET /index.aspx - Port - IPXXXXX Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/37.0.2062.120+Safari/537.36 500 24 50 41
静态内容已经启用,我尝试了几乎所有在互联网上找到的解决方案,但没有任何效果,
请帮忙
集成,.NET 4.5
IIS 7.5
Windows 服务器 2008 r2
【问题讨论】:
-
@Reniuz 不是重复我的朋友,请看那个问题,那里的答案是因为使用第三方库,我没有使用任何第三方库,请不要做这个问题是重复的,因为它不是
-
不,有 2 条建议。 1. 检查 3rd 方库 2. 将 Global.asax 放在应用程序的根目录中,并尝试在 Application_Error 中捕获更详细的异常。附:请写下你有什么和你做了什么,因为我们无法预测。您提到您几乎尝试了所有方法,那么您厌倦和失败的解决方案是什么?
-
你也读过这个:stackoverflow.com/questions/5404342/… 它说 Firefox 在没有收到 html 时显示这个错误。你检查过吗?
-
@Reniuz 我的应用程序中没有 Global.asax