In a TeamCity CI setup using MSDeploy for packaging and deployment, I started getting the following error:
[12:44:05]_build\build.xml.teamcity: Build target: Deploy (39s)
[12:44:05][_build\build.xml.teamcity] Deploy (39s)
[12:44:43][Deploy] CallTarget (1s)
[12:44:43][CallTarget] CleanSitecoreDeploy (1s)
[12:44:43][CleanSitecoreDeploy] Exec (1s)
[12:44:44][Exec] EXEC error Code: ERROR_COULD_NOT_CONNECT_TO_REMOTESVC
[12:44:44][Exec] Error (503) Server Unavailable.
[12:44:44][Exec] EXEC error count: 1.
[12:44:44][Exec] D:\TeamCity\buildAgent\work\acbf438b080c752e\_build\build.xml(97, 3): error MSB3073: The command "".\MsDeploy\msdeploy.exe" -verb:sync -source:package="D:\TeamCity\buildAgent\work\acbf438b080c752e\_build\package\sc531CleanDeployPackage.zip" -dest:iisApp=dev.MYSITE.dk,computerName=localhost" exited with code -1.
[12:44:44][_build\build.xml.teamcity] Project _build\build.xml.teamcity failed.
Extremely simple. In my case, the Web Deploy service had stopped for an unapparent reason. I couldn’t find a clue, though, in the event log other than that it just stopped. I will update here, if this continues, and I find a solution.
← Solution: Cannot define a new extension method because the compiler required type ‘System.Runtime .CompilerServices .ExtensionAttribute’ cannot be found. Are you missing a reference to System.Core.dll?