Question

I'm trying to deploy to IIS using MSBuild. In particular I'm running the following MSBuild command:

msbuild C:\TeamCity\buildAgent\work\49ca329357fce9a6\trunk\Web\Web.csproj /P:Configuration=Debug /P:DeployOnBuild=True /P:DeployTarget=MSDeployPublish /P:MsDeployServiceUrl=https://192.168.1.1/MsDeploy.axd /P:AllowUntrustedCertificate=True /P:MSDeployPublishMethod=WMSvc /P:CreatePackageOnPublish=True /P:UserName=user /P:Password=password /P:DeployIisAppPath=web

It builds the project and then I get the following error:

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.targets(4715,7): error MSB4062: The "CheckRemoteFx45" task could not be loaded from the assembly C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.Tasks.dll. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [C:\TeamCity\buildAgent\work\49ca329357fce9a6\trunk\Web\Web.csproj]

Is there something I need to install? Note this is not the server with IIS on it, this is the server that has Teamcity on it.

Was it helpful?

Solution

Hmm, I'm not sure why you are getting that error.

To workaround it you can set the property _Enable45Check to false and the check should be avoided.

FYI we removed the check all together so if you update to the latest you should be good as well.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top