在我們的項目用戶使用NHibernate 2.1.1與SQL Server 2008與.NET 3.5。命名管道提供程序,錯誤:40 - 無法打開與SQL Server的連接?
我面臨SQL Server的奇怪問題。我們開發了windows服務,並安裝了它,並且運行良好。不幸的錯誤,當我停止SQL Server中,NHibernate的拋出異常
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)
但在重新啓動SQL Server之後,無法連接到SQL Server,還拋出了同樣的錯誤。但是我能夠通過查詢分析器/管理工作室連接SQL Server。
請任何機構可以幫助我解決問題?
感謝
NRK
分析器/工作室是否也使用*命名管道提供程序? – 2010-06-25 09:37:09
NO。它使用默認協議。 – nRk 2010-06-25 10:41:56