我在服务器上托管我的应用程序,但我遇到了这个错误。所有配置和设置已在服务器上完成。 IIS 8.5安装了Windows Server 2012 R2和框架,即4.0.30319。
我在我的本地系统上托管了它,并且在其他安装了Windows 7且应用程序运行良好的系统上进行了测试,结果非常完美。
错误明细:
HTTP错误500.19 - 内部服务器错误 无法访问请求的页面,因为页面的相关配置数据无效。
Detailed Error Information: Module IIS Web Core Notification BeginRequest Handler Not yet determined Error Code 0x8007000d Config Error Configuration file is not well-formed XML Config File \\?\C:\inetpub\wwwroot\AutoPartsPublishedCode\web.config Requested URL http://localhost:80/ApplicationName/ Physical Path C:\inetpub\wwwroot\AutoPartsPublishedCode\ Logon Method Not yet determined Logon User Not yet determined Config Source: 11: <connectionStrings> 12: <add name="AutoPartsEntities" connectionString="metadata=res://*/EntityRepository.AutoPartsEntity.csdl|res://*/EntityRepository.AutoPartsEntity.ssdl|res://*/EntityRepository.AutoPartsEntity.msl;provider=System.Data.SqlClient;provider
connection string =“data source = ServerName; initial catalog = AutoParts_latest; persist security info = True;用户 ID = SA;密码= myPassword;复制代码MultipleActiveResultSets = TRUE;应用=的EntityFramework “” providerName =“System.Data.EntityClient”/&gt; 13:
更多信息: 读取Web服务器或Web应用程序的配置文件时出现此错误。在某些情况下,事件日志可能包含有关导致此错误的更多信息。
答案 0 :(得分:0)
遇到此错误的每个人都请更改web.config文件,问题是sqlserver sa用户无法访问应用程序我更改了带有Integrated Security = true的web.config文件
我有两个连接字符串1st表示报告,另一个表示EntityFramework。
希望得到相同错误的任何人都可以通过更改连接字符串web.config文件来解决它
此致