我在我的web.config以下連接字符串:錯誤:26 - 錯誤定位服務器/實例指定。 (無法連接到我的本地數據庫)
<add name="ApplicationServices"
connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true"
providerName="System.Data.SqlClient" />
當我試圖從我的本地IIS服務器都連接到我的本地數據庫aspnetdb.mdf
工作正常,但當我把該網站在其他服務器,我收到此錯誤消息:
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).
(在我有SQL Server 2008安裝其他服務器)。
[錯誤:26 - 錯誤定位服務器/實例指定錯誤。 (無法連接到我的本地Db從我的主機服務器)](http://stackoverflow.com/questions/11820168/error-26-error-locating-server-instance-specified-cant-connect-to-my-本地) – 2012-08-05 21:36:50