我采用DotNetNuke架构开发网站,数据库是SqlServer2005。在DotNetNuke的配置文件Web.config中数据库连接字符串是这样的:
<add name="SiteSqlServer" connectionString="Data Source=localhost;Initial Catalog=Cumstomers;User ID=AAA;Password=BBB" providerName="System.Data.SqlClient" />SqlServer数据库Cumstomers的用户名和密码也分别为AAA和BBB。但是运行网站时发生如下错误,请问这是怎么回事呢?A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
<add name="SiteSqlServer" connectionString="Data Source=localhost;Initial Catalog=Cumstomers;User ID=AAA;Password=BBB" providerName="System.Data.SqlClient" />SqlServer数据库Cumstomers的用户名和密码也分别为AAA和BBB。但是运行网站时发生如下错误,请问这是怎么回事呢?A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货