訪問數據庫,我開發了簡單地從sql database
返回一些名字一個Web服務。當我從visual studio web服務器編譯這個web服務時,該服務工作正常,我可以從sql database
中檢索名稱。 我對Windows 7
託管在iis7
服務。該服務運行良好,但無法從數據庫獲取數據。 蔭收到以下錯誤:無法從IIS
"A connection was successfully established with the server, but then an error occurred during the pre-login handshake.."
當我調試我的服務從IIS,錯誤的是 connection.serverversion throws system.invalidoperationexception
... 我不要有任何線索如何解決這個問題。請在這方面幫助我。 我正在使用sql server 2008
。
檢查此問題http://stackoverflow.com/questions/3270199/a-connection-was-successfully-established-with-the-server-but-then-an-error-occ – Max
否..它力氣解決我的問題....當我從iis運行這個應用程序時,我的視覺工作室沒有運行。即使我檢查了Web服務器服務..它不存在... – codewarrior
iis應用程序池的用戶可以訪問/讀取數據庫嗎? – Max