简体   繁体   English

使用清单会从MSDeploy.exe中给出错误“无法识别参数”

[英]Using Manifest gives an error 'parameter is not recognized' from MSDeploy.exe

For ASP.NET project MSBuild gives some files in E:\\tmp such as: 对于ASP.NET项目,MSBuild在E:\\ tmp中提供了一些文件,例如:

  • TestProjectA.deploy.cmd TestProjectA.deploy.cmd
  • TestProjectA.SetParameters.xml TestProjectA.SetParameters.xml
  • TestProjectA.SourceManifest.xml TestProjectA.SourceManifest.xml
  • TestProjectA.zip TestProjectA.zip

To deploy from Windows 7 to Windows Server 2008 R2 (IIS 7) 从Windows 7部署到Windows Server 2008 R2(IIS 7)

Executing command gives following error message: 执行命令会显示以下错误消息:

Command 命令

C:\Program Files\IIS\Microsoft Web Deploy V3>msdeploy.exe -verb:sync -source:manifest="E:\tmp\TestProjectA.SourceManifest.xml" -dest:auto -declareParamFile="E:\tmp\TestProjectA.SetParameters.xml"

Error Message 错误信息

Error: The declared parameter 'IIS Web Application Name' is not recognized. E:\\tmp\\TestProjectA.SetParameters.xml
Error count: 1.

TestProjectA.SetParameters.xml file contains: TestProjectA.SetParameters.xml文件包含:

<?xml version="1.0" encoding="utf-8"?>
  <parameters>
     <setParameter name="IIS Web Application Name" value="Default Web Site/TestProjectA_deploy" />
     <setParameter name="DefaultConnection-Web.config Connection String" value="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-TestProjectA-20140131141721;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-TestProjectA-20140131141721.mdf" />
  </parameters> 

In IIS TestProjectA_deploy App exist under Default Web Site . 在IIS中,“ Default Web Site下存在TestProjectA_deploy应用程序。

Is there any idea to solve it? 有什么办法解决吗?

Was having similar issue on the cmd line using -setParam:'IIS Web Application Name'='Default Web Site/' 使用-setParam在cmd行上存在类似问题:“ IIS Web应用程序名称” =“默认网站/”

Resulting in "Error: Unrecognized argument 'IIS Web Application Name=Default Web Site/'" 结果为“错误:无法识别的参数'IIS Web应用程序名称=默认网站/'”

What I needed to do was drop the -setParam (which produced an error related to authenticaiton and contentPath) and change then change -dest:auto to -dest:contentPath='Default Web Site' 我需要做的是删除-setParam(这会产生与authenticaiton和contentPath有关的错误),然后进行更改,然后将-dest:auto更改为-dest:contentPath ='Default Web Site'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 VSTS msdeploy.exe错误:ERROR_USER_NOT_AUTHORIZED_FOR_CONTENTPATH - VSTS msdeploy.exe error: ERROR_USER_NOT_AUTHORIZED_FOR_CONTENTPATH 通过MSdeploy.exe部署发生错误550 - Error 550 occurred by deploying via MSdeploy.exe 从DefaultAppPool下运行msdeploy.exe会产生奇怪的行为 - Run msdeploy.exe from under DefaultAppPool produces weird behaviour MSDeploy.exe可以作为管理员连接,但不能以任何其他Windows帐户连接 - MSDeploy.exe can connect as Administrator, but not any other Windows account 告诉MSDeploy.exe在后续部署中跳过部署一些选择文件 - Tell MSDeploy.exe to skip deploying a few select files in subsequent deployments 使用MSDEPLOY的TeamCity ERROR_FILE_IN_USE - TeamCity using MSDEPLOY ERROR_FILE_IN_USE 插入给出“无法将参数值从字符串转换为字节”错误 - Insert gives “Failed to convert parameter value from a String to a Byte” error 使用 ef6.exe 迁移错误:值不能为 NULL。 参数名称:path1 - Migration using ef6.exe error: Value cannot be NULL. Parameter name: path1 使用 RScript.exe 运行带参数的 rscript - Using RScript.exe to run a rscript with parameter 使用设置的参数部署到Azure时出现MSdeploy错误 - MSdeploy error while deploying to Azure with set parameters
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM