Microsoft.Web.Deployment.DeploymentManager的类型初始值设定项引发了异常 [英] The Type initializer for Microsoft.Web.Deployment.DeploymentManager threw an exception

查看:389
本文介绍了Microsoft.Web.Deployment.DeploymentManager的类型初始值设定项引发了异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人对此有解决方案吗?我正在尝试使用Visual Studio 2015部署Azure Webjob,并且每当我尝试验证与服务器的连接时,它都会不断抛出此错误.

Anyone have a solution for this? I am trying to deploy an Azure Webjob using Visual Studio 2015 and it keep throwing this error whenever I try to validate the connection to the server.

我在本文的第一个答案中尝试了该解决方案,但是我没有在注册表中列出那些注册表项

I tried the solution in the first answer of this post, but I do not have those registry entries listed in the registry

Web部署任务失败. ("Microsoft.Web.Deployment.DeploymentManager"的类型初始值设定项引发了异常.)

我还尝试使用金块将Web Deploy扩展安装到项目中.没什么.

I also tried to install the Web Deploy extension using nugget to the project. Made no difference.

推荐答案

如果修复不起作用,您还可以尝试安装最新版本的WebDeploy(3.6).

If the repair doesn't work you could also try installing the latest version (3.6) of WebDeploy.

https://www.microsoft.com/zh-我们/download/details.aspx?id=43717

如果从命令行使用debug标志运行MSDeploy,则可能会获得更多错误详细信息.

You may be able to get more error details if you run MSDeploy from the command line with the debug flag.

这篇关于Microsoft.Web.Deployment.DeploymentManager的类型初始值设定项引发了异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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