I am getting the following error when I use web deploy from visual studio 2010. Web deployment task failed. (The type initializer for \'Microsoft.Web.Deployment.DeploymentMa
Just uninstall Microsoft dbsqlpackage provider. Go to "Programs and Features". It is no longer used.
I already had SSMS 2014 and this didn't seem to cause any issue with publishing in VS. The issue arose for me later after installing the SQL Server 2014 database engine.
The registry entries referred to by Victor were blank. Reinstalling VS2012 fixed the problem.
I was able to resolve this error by reinstalling SQL Server. I reinstalled SQL 2012 Express, from MSDN, with this file name.
only 940 mb download. Seems to have repaired whatevrer I jacked up by all the manual uninstalls last week.
en_sql_server_2012_express_edition_with_tools_with_sp1_x64.exe
I hope that helps.
I had the same problem but installing SQL 2012 and changing the registry didn't fix it. After reinstalling Web Deploy 3.5 on my development machine things got straightened out.