當連接到SQL Server 2012快速從Asp.Net的應用程序,我得到下面的異常指定的服務器/實例:SQL網絡接口,錯誤:26 - 錯誤定位,同時通過asp.net應用程序連接
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,但是一旦我將應用程序發佈到數據庫所在的服務器上,我就得到了上述異常。
我試過在網上共享的各種方法,但沒有爲我工作。有什麼建議麼?