以下是什麼問題?SQL Server未找到或無法訪問
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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
這怎麼解決?
你的連接字符串在你的web.config中看起來像什麼? – 2011-03-25 16:16:29
你是否有機會嘗試連接到遠程機器上的SQL Server ** Express **實例? Express默認不支持遠程連接 - 您需要明確配置它 – 2011-03-25 16:30:26