I have an ASP.NET web application that formerly published just fine to several locations. Now when I try to publish or package the application from Visual Studio, regardless of method (i.e., through the Build menu, through One-Click Publish, or the project's context menu), the operation fails with the following error:
Web deployment task failed. (Attempt by method 'Microsoft.Web.Publishing.Tasks.VSMSDeployDriverInCmd.LogTrace (Microsoft.Web.Deployment.DeploymentTraceEventArgs)' to access type 'Microsoft.Web.Deployment.DeploymentSyncParameterEventArgs' failed.)
Which doesn't give much guidance on how to fix it. I have reinstalled Visual Studio and Web Deploy to no avail. Tried disabling and even uninstalling my Visual Studio plugins - nothing.
Can someone give insight into the cause of this message and how to fix it? Or at least how to diagnose what the real problem is?