在將網站部署到運行IIS7的Windows 2008 R2服務器時出現問題。我以前已經將其他站點部署到此服務器。 Web部署正在連接並將我的文件複製到服務器,但我看到以下錯誤。VS2010 web部署連接字符串參數不能爲空或空
1 The 'Connection String' argument cannot be null or empty
2 Web deployment task failed.((20/07/2012 14:19:16) An error occurred when the request was processed on the remote computer.)
(20/07/2012 14:19:16) An error occurred when the request was processed on the remote computer. Could not find a part of the path 'C:\Users\Me\Documents\Visual Studio 2010\Projects\MySite\MySiteClient\obj\Release\AutoScripts\EFDbContext-Deployment_SchemaOnly.sql'. 0 0 MySiteClient
我已驗證路徑存在於本地機器上。
我已經嘗試發佈出web.config變換並使用xdt:transform函數來設置遠程服務器字符串。
我還在Package/Publish SQL選項卡中明確設置了目標數據庫和源數據庫的連接字符串,並且不知道是什麼問題。
任何想法?
完整的用戶錯誤。從我的Web配置導入後,我有兩個數據庫條目ApplicationServices和MyAppContext。我爲第一個應用程序設置連接字符串,但不是爲MyAppContext條目設置連接字符串。認爲我忽略了這一點,因爲我沒有意識到連接字符串輸入框隨着數據庫列表框中的選定條目而改變。 doh ..... – MPD 2012-07-24 10:00:24