问题
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