在将网站部署到运行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