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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
当我在网络服务器上上传我的网站并使用连接字符串与远程 sqlserver2005 连接时......
<connectionStrings>
<remove name="ConnectionString"/>
<add name="ConnectionString" connectionString="Data Source=69.16.253.19,1433;Initial Catalog=vb_usa;Persist Security Info=True;User ID=username;Password=password" providerName="System.Data.SqlClient"/>
</connectionStrings>
它会产生以下错误——您可以在我的网页中看到错误:
http://vbi.volvobusesindia.com
它在上面显示错误..
我在我的网站中的 APP_Data 文件夹中使用 aspnetdb.mdf... 我在我的网站中使用的功能是登录控制、密码恢复、注册控制...