我在連接到我的數據庫服務器時遇到問題。數據庫服務器不是本地的,我通過它的IP地址連接。無法打開與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)
爲什麼我的發佈服務器不能連接到數據庫服務器,而通過開發機器可以正常工作嗎?
您的圖片讓你看起來像有一個很好的機會,你的精神。 – 2010-08-31 18:36:15
我改變了這添加到connectionstrng 集成安全= SSPI; 並沒有工作 – nezdet 2010-08-31 18:41:47
@nezdet:您的更改實際上明確添加了Windows身份驗證。如果是Josh建議的問題,您將遇到的問題會持續存在,除非您將運行Web服務器的憑據更改爲具有數據庫訪問權限的集合(例如,您自己的,儘管您應該始終嘗試使用服務帳戶爲web服務器 – 2010-08-31 18:50:21