The Type initializer for Microsoft.Web.Deployment.DeploymentManager threw an exception

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 00:53:45

问题


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 deployment task failed. (The type initializer for 'Microsoft.Web.Deployment.DeploymentManager' threw an exception.)

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


回答1:


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

https://www.microsoft.com/en-us/download/details.aspx?id=43717

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



来源:https://stackoverflow.com/questions/35978696/the-type-initializer-for-microsoft-web-deployment-deploymentmanager-threw-an-exc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!