我正在開發一個使用VS2012和SQL Server 2008使用Windows身份驗證的Web應用程序。當我從本地VM執行我的應用程序時,它將連接到數據庫並正常工作。但是,當我在服務器IIS中發佈應用程序時,它發出這個錯誤。「管道的另一端沒有進程」。兩者都使用d相同的數據庫服務器。這裏是我的連接字符串。沒有進程是在管道的另一端sql server 2008
<connectionStrings>
<add name="DbConnectionString" connectionString="Data Source=XXXXXX200;Initial Catalog=XXXXX_XXXXX;Integrated Security=SSPI;" providerName="System.Data.SqlClient"/>
</connectionStrings>
即使除去
providerName="System.Data.SqlClient".
但仍然是給錯誤與
Integrated Security=true; and Trusted_Connection=yes;
而且也試過。但同樣的事情從開發環境中工作得很好。但是從託管服務器注意到。
你能幫我解決我失蹤的地方和方法嗎?
參考http://technet.microsoft.com/en-us/library/ms175496(v=sql.105).aspx – Pawan