2

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.

enter image description here

Community
  • 1
  • 1
erotavlas
  • 4,274
  • 4
  • 45
  • 104
  • Have you tried other answers in that post you mentioned? Some said restart VS and rebuild the project fixed the problem, you could try it. The error message is quite general and doesn't provide much useful information to locate the root cause. – forester123 Mar 14 '16 at 02:54
  • @forester123 yeah I did all that too, I'm currently trying a repair install on VS, hope that helps – erotavlas Mar 14 '16 at 03:03
  • Possible duplicate of [Web deployment task failed. (The type initializer for 'Microsoft.Web.Deployment.DeploymentManager' threw an exception.)](http://stackoverflow.com/questions/6351289/web-deployment-task-failed-the-type-initializer-for-microsoft-web-deployment) – Saul Apr 24 '16 at 20:24

1 Answers1

2

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.

chief7
  • 14,263
  • 14
  • 47
  • 80