title: Not able to web deploy to ec2 instance
body: <p>I am trying to web deploy to a ec2 instance using the msbuild </p>
  
  <pre><code>C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe 
  /p:Configuration=Release;MsDeployServiceUrl=ec2-instance
  </code></pre>
  
  <p>name.compute.amazonaws.com:8172/msdeploy.axd;MSDeployPublishMethod=RemoteAgent;username="adminuser";password="password";DeployIisAppPath=Sitename;CreatePackageOnPublish=true;DeployOnBuild=true;DeployTarget=WebPublish
       "my.Web.csproj"</p>
  
  <p>I get a</p>
  
  <pre><code>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web
  .Publishing.targets(3847,5): error : Web deployment task failed.(Could not comp
  lete the request to remote agent URL ':8172/msdeploy.axd/MSDEPLOYAGENTSERVICE'.)  This error indicates that you cannot connect
   to the server. Make sure the service URL is correct, firewall and network sett
  ings on this computer and on the server computer are configured properly, and t
  he appropriate services have been started on the server.
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.P
  ublishing.targets(3847,5): error : Error details:\r 
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.P
  ublishing.targets(3847,5): error : Could not complete the request to remote age
  nt URL ':8172/msdeploy.a
  xd/MSDEPLOYAGENTSERVICE'.
  </code></pre>
  
  <p>I have 
  1.Open ports in security group for 8172</p>
  
  <p>2.Reinstalled web deploy 3 in target</p>
  
  <p>3.Made a admin user and using that</p>
  
  <p>Help would be really appreciated.</p>