Azure DevOps-进程“ C:\ Program Files \ IIS \ Microsoft Web Deploy V3 \ msdeploy.exe”失败,退出代码3762504530

时间:2020-04-14 14:16:58

标签: azure azure-devops continuous-deployment azure-devops-server-2019 azure-devops-self-hosted-agent

我正在使用Azure DevOps进行内部部署,并且出现以下错误。我将其部署在Windows 10专业版计算机上。请问对此有什么帮助将是很大的帮助。由于我试图找到一些解决方案,但找不到。

The process 'C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe' failed with exit code 3762504530

Failed to deploy web package to IIS website.
Unhandled Exception: System.MissingMethodException: Method not found: 'Void Microsoft.Web.Deployment.Tracing.WebDeployEventWriter.EventWriteVerbose(System.String, System.String, System.String)'.
   at Microsoft.Web.Deployment.TraceWrapper.EventWriteVerboseHelper(String message, String user, String siteName)
   at Microsoft.Web.Deployment.TraceWrapper.EventWriteVerbose(String message, String user, String siteName)
   at MSDeploy.MSDeploy.Main(String[] unusedArgs)

"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:package='C:\azagent\A1\_work\r1\a\temp_web_package_6877648714396305.zip' -dest:auto -setParam:name='IIS Web Application Name',value='SD' -enableRule:DoNotDeleteRule
2020-04-14T13:22:28.4943595Z Error: The process 'C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe' failed with exit code 3762504530

我已经提供了更多细节。

[command]"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:package='C:\azagent\A1\_work\r1\a\temp_web_package_3355247159673458.zip' -dest:auto -setParam:name='IIS Web Application Name',value='SD' -enableRule:DoNotDeleteRule2020-04-15T07:42:01.8379357Z Error: The process 'C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe' failed with exit code 3762504530

2020-04-15T07:42:01.8380492Z在ExecState._setResult(C:\ azagent \ A1_work_tasks \ IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba \ 0.156.9 \ node_modules \ azure-pipelines-task-lib \ toolrunner .js:816:25) 2020-04-15T07:42:01.8381798Z在ExecState.CheckComplete(C:\ azagent \ A1_work_tasks \ IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba \ 0.156.9 \ node_modules \ azure-pipelines-task-lib \ toolrunner.js: 799:18) 2020-04-15T07:42:01.8383760Z在ChildProcess。 (C:\ azagent \ A1_work_tasks \ IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba \ 0.156.9 \ node_modules \ azure-pipelines-task-lib \ toolrunner.js:721:19) 2020-04-15T07:42:01.8384653Z在emitTwo(events.js:106:13) 2020-04-15T07:42:01.8385039Z在ChildProcess.emit(events.js:191:7) 2020-04-15T07:42:01.8386129Z at也许关闭(内部/child_process.js:920:16) 2020-04-15T07:42:01.8386764Z位于Process.ChildProcess._handle.onexit(内部/child_process.js:230:5) 2020-04-15T07:42:01.8387253Z正在尝试部署程序包。 2020-04-15T07:42:01.8395750Z [命令]“ C:\ Program Files \ IIS \ Microsoft Web Deploy V3 \ msdeploy.exe” -verb:sync -source:package ='C:\ azagent \ A1_work \ r1 \ a \ temp_web_package_3355247159673458.zip'-dest:auto -setParam:name ='IIS Web应用程序名称',value ='SD'-enableRule:DoNotDeleteRule 2020-04-15T07:42:01.8906481Z ## [错误]无法将Web包部署到IIS网站。 2020-04-15T07:42:01.8929403Z ## [错误] 未处理的异常:System.MissingMethodException:找不到方法:'Void Microsoft.Web.Deployment.Tracing.WebDeployEventWriter.EventWriteVerbose(System.String,System.String,System.String)'。 在Microsoft.Web.Deployment.TraceWrapper.EventWriteVerboseHelper(字符串消息,字符串用户,字符串siteName) 在Microsoft.Web.Deployment.TraceWrapper.EventWriteVerbose(String消息,String用户,String siteName) 在MSDeploy.MSDeploy.Main(String []未使用的Args)

2020-04-15T07:42:01.8933306Z ## [错误]错误:进程'C:\ Program Files \ IIS \ Microsoft Web Deploy V3 \ msdeploy.exe'失败,退出代码3762504530 2020-04-15T07:42:01.9112353Z ## [section]完成:IIS Web App部署

1 个答案:

答案 0 :(得分:1)

我找到了解决方案,我们需要删除webdeploy 4.0并降级到webdeploy 3.6,然后才能正常工作。