我在web.config中有一個連接字符串。數據源是「.\SQLEXPRESS
」 這工作的本地機器上很好,但是當我發表使用VS網站和發生錯誤有關SQL連接。web.config中的連接字符串
我認爲有一些問題「」然後我將其更改爲IP地址,之後在本地和遠程機器上都發生了錯誤。
我認爲問題出在數據源的表達。有誰能幫我解決這個問題嗎?
的錯誤是:
Server Error in '/' Application. 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)
能否請您上傳您有實際的錯誤? – 2011-12-28 18:32:48
是在您的遠程機器上SQLExpress? – Robert 2011-12-28 18:55:47