我知道這個問題已經在論壇上,但我的情況有點特殊,我有了兩個連接字符串中的網絡配置站點如下:建立到SQL Server的連接時發生網絡相關或實例特定的錯誤。我的服務器未找到或無法訪問
<add name = "myConnString"
connectionString = "user id = user1, password = user1; Persist Security Info = False; Database = clarins_abs; Server = teck2012; Connect Timeout = 60; Trusted_Connection = False;"
providerName = "System.Data. SqlClient "/>
<add name="ApplicationServices"
connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true"
providerName="System.Data.SqlClient" />
當我把網站上我的本地IIS服務器一切正常,但是當我把網站另一臺服務器上我收到此錯誤信息:
A network-related or instance-specific error occurred while Establishing a connection to SQL Server. The server was not found gold Was Not available. Verify That the instance name is ok and That SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified).
我有SQL Server 2008 R2的
您可以連接到使用SSMS服務器?如果是這樣,您知道服務器正在接受遠程連接。如果沒有,請查看服務器並啓用tcp/ip並啓用防火牆中的端口1433以接受連接。 – 2012-08-04 07:55:27
我可以使用ssms連接到我的服務器,問題不在這裏 – wben 2012-08-04 14:12:28