[英]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中提供了一些文件,例如:
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.