Publish error: Could not load file or assembly 'Microsoft.Web.XmlTransform', Version=1.4.0.0, Culture=neutral, etc. or one of its dependencies Publish error: Could not load file or assembly 'Microsoft.Web.XmlTransform', Version=1.4.0.0, Culture=neutral, etc. or one of its dependencies asp.net asp.net

Publish error: Could not load file or assembly 'Microsoft.Web.XmlTransform', Version=1.4.0.0, Culture=neutral, etc. or one of its dependencies


Repairing "Microsoft ASP.NET and Web Tools 2013.1 - Visual Studio 2012" from Control Panel re-added the dll for me (what was missing, apparently after I updated the said package a few weeks ago).


I finally got this to work. I'm leaving my solution here in case others have a similar issue.

Basically I tried repairing my VS using the Microsoft ASP.NET and Web Tools 2013.1 (I got it from here Microsoft Web Tools download page). However, it didn't solve the problem for me.What did solve it was copying the file Microsoft.Web.XmlTransforms.dll from another machine at the location

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web

Somehow, mine was missing from there (I got it from another computer with the same .NET version and pasted it there) and now the publish works fine.


Had that problem also. What worked for me was: