MSDeploy上的空参数错误 [英] Null argument error on MSDeploy

查看:95
本文介绍了MSDeploy上的空参数错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到以下错误-代码错误:连接字符串"参数不能为null或为空."运行MSDeploy时.当我检查SetParameters.xml文件时,我注意到以下参数设置.

I am getting the following error - code "Error: The ‘Connection String’ argument cannot be null or empty." when running the MSDeploy. When I examined the SetParameters.xml file I noticed the following parameter settings.

<setParameter name="ApplicationServices-Deployment Connection String" value="" /> 
<setParameter name="MusicStoreEntities-Deployment Connection String" value="" /> 

我不是开发此程序包的人,我不确定参数应该是什么.

I am not the one who developed this package and I am not sure what the arguments should be.

推荐答案

之所以会发生这种情况,是因为您没有为数据库的目标连接字符串提供值,即使您将其部署到远程服务器上也是如此.

This is happening because you are not providing a value for the destination connection string for a database, even though you are deploying it to a remote server.

  1. 双击WAP的属性
  2. 点击打包/发布SQL
  3. 单击数据库条目"中的数据库
  4. 向下滚动并在数据库条目详细信息">目标数据库的连接字符串"中提供有效的连接字符串

这篇关于MSDeploy上的空参数错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆