title: VS2013 Cordova iOS Remotebuild Error Cannot POST /build/tasks?command=build&amp;vcordova=4.3.1&amp;cfg=debug
body: <p>I am a new member here and hope that I'm asking my question the right way.  I think my question is identical to the one posted at:</p>
  
  <p><a href="https://stackoverflow.com/questions/34614658/visual-studio-2013-cordova-remotebuild-failed-cannot-post-build-taskscommand">Visual Studio 2013 Cordova RemoteBuild failed (Cannot POST /build/tasks?command=build&amp;vcordova=4.3.1&amp;)</a></p>
  
  <p>I'm using Visual Studio 2013 Update 5 with TACO to try to port a JavaScript app to iOS.  To make sure my setup is correct, I'm starting with a "Hello World" BlankCordovaApp template.  I have run remotebuild --secure false on my Mac mini.  I have configured VS Tools -> Options -> Tools for Apache Cordova -> Remote Agent Configuration to point at my Mac mini Host / Port.  When I build the cordova template in VS, I get the following:</p>
  
  <pre><code>1&gt;Done executing task "RemoveDir". (TaskId:20)
  1&gt;Done building target "MDACleanAfterInstall" in project "BlankCordovaApp1.jsproj".: (TargetId:12)
  1&gt;Done executing task "CallTarget". (TaskId:10)
  1&gt;Task "Error" skipped, due to false condition; ($(MDAInstallErrorCode) != '0' And $(MDAInstallErrorCode) != '-17') was evaluated as (-17 != '0' And -17 != '-17').
  1&gt;Done building target "InstallMDATargets" in project "BlankCordovaApp1.jsproj".: (TargetId:11)
  1&gt;Done executing task "CallTarget". (TaskId:8)
  1&gt;Done building target "EnsureNodeJsRequirementsAreAtCorrectVersion" in project "BlankCordovaApp1.jsproj".: (TargetId:10)
  1&gt;Target "BuildMDA: (TargetId:14)" in file "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\CordovaTools\vs-mda-targets\Microsoft.MDA.targets" from project "C:\Users\XXX\documents\visual studio 2013\Projects\BlankCordovaApp1\BlankCordovaApp1\BlankCordovaApp1.jsproj" (target "Build" depends on it):
  1&gt;Task "Error" skipped, due to false condition; ($(Platform) == 'iOS' AND $(iOSRemoteBuildSecurityPIN) == 'NULL') was evaluated as (iOS == 'iOS' AND  == 'NULL').
  1&gt;Task "CreateBuildInfoMetadata" skipped, due to false condition; ( '$(Platform)' == 'android' ) was evaluated as ( 'iOS' == 'android' ).
  1&gt;Task "CreateBuildInfoMetadata" skipped, due to false condition; ( '@(BuildMDACpuSpecificPlatform)' != '' ) was evaluated as ( '' != '' ).
  1&gt;Task "ExportRemoteIosCertificates" skipped, due to false condition; ($(Platform) == 'iOS' AND $(iOSRemoteBuildSecurityPIN) != '') was evaluated as (iOS == 'iOS' AND  != '').
  1&gt;Task "MdaVsCli" skipped, due to false condition; ( '@(BuildMDACpuSpecificPlatform)' != '' ) was evaluated as ( '' != '' ).
  1&gt;Using "MdaVsCli" task from assembly "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\CordovaTools\vs-mda-targets\Microsoft.VisualStudio.MultiDeviceHybridApps.MdaBuildTasks.dll".
  1&gt;Task "MdaVsCli" (TaskId:21)
  1&gt;  Task Parameter:NpmInstallDir=C:\Users\XXX\AppData\Roaming\npm (TaskId:21)
  1&gt;  Task Parameter:Platform=iOS (TaskId:21)
  1&gt;  Task Parameter:ProjectDir=. (TaskId:21)
  1&gt;  Task Parameter:Configuration=Debug (TaskId:21)
  1&gt;  Task Parameter:ProjectName=BlankCordovaApp1 (TaskId:21)
  1&gt;  Task Parameter:Language=en-US (TaskId:21)
  1&gt;  Task Parameter:BuildServerUrl=http://192.168.0.10:3000 (TaskId:21)
  1&gt;  Task Parameter:BuildTarget=iOSEmulatoriPhone5 (TaskId:21)
  1&gt;   (TaskId:21)
  </code></pre>
  
  <p>and then</p>
  
  <pre><code>1&gt;  ------ Submitting new build request to: http://192.168.0.10:3000/build/tasks?command=build&amp;vcordova=4.3.1&amp;cfg=debug (TaskId:21)
  1&gt;MDAVSCLI : error : Cannot POST /build/tasks?command=build&amp;amp;vcordova=4.3.1&amp;amp;cfg=debug
  1&gt;Done executing task "MdaVsCli" -- FAILED. (TaskId:21)
  1&gt;Done building target "BuildMDA" in project "BlankCordovaApp1.jsproj" -- FAILED.: (TargetId:14)
  </code></pre>
  
  <p>What I see in my Mac mini terminal output is</p>
  
  <p>POST /build/tasks?command=build&amp;vcordova=4.3.1&amp;cfg= debug <strong>404</strong> 118.747 ms - 72</p>
  
  <p>I'm trying this for the first time and after failing to find a solution here and on the Microsoft boards, I'm hoping someone has seen this before and can help.  Thank you in advance.</p>
  
  <p>Update:  Given that VS is "submitting a new build request" I am tentatively concluding that the problem is not on the VS build side but on the Mac simulator side.  I suspect that my Mac mini remotebuild agent is refusing to accept the build from VS and that my terminal output <strong>404</strong> code is a connection error.  Could this be a node.js or npm issue on the Mac?</p>