我正在使用 Azure DevOps 进行本地部署,但出现如下错误。我正在 Windows 10 pro 机器上部署它。对此有何帮助将是很大的帮助。因为我试图找到一些解决方案但找不到。
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 在可能关闭 (internal/child_process.js:920:16) 2020-04-15T07:42:01.8386764Z 在 Process.ChildProcess._handle.onexit (internal/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:找不到方法:'无效 Microsoft.Web.Deployment.Tracing.WebDeployEventWriter.EventWriteVerbose(System.String,System.String,System. 细绳)'。在 Microsoft.Web.Deployment.TraceWrapper.EventWriteVerboseHelper(字符串消息,字符串用户,字符串站点名称)在 Microsoft.Web.Deployment.TraceWrapper.EventWriteVerbose(字符串消息,字符串用户,字符串站点名称)在 MSDeploy.MSDeploy.Main(字符串 []未使用的参数)
2020-04-15T07:42:01.8933306Z ##[错误]错误:进程“C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe”失败,退出代码为 3762504530 2020-04-15T07:42: 01.9112353Z ##[部分]整理:IIS Web App 部署