Publish Errors in VS 2010

Discussion in 'Getting started' started by sandeepchin, Aug 2, 2010.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi,

    I am trying to publish a simple one page asp.net web application using the publish feature in vs 2010 but I am getting the following error after VS shows status that the publish is in progress for about a minute or so:

    Start Web Deploy Publish the Application/package to http://[mydomain].web709.discountasp.net:8172/msdeploy.axd/MSDEPLOYAGENTSERVICE ...
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(3588,5): Error : Web deployment task failed.(Could not complete the request to remote agent URL 'http://[mydomain].web709.discountasp.net:8172/msdeploy.axd/MSDEPLOYAGENTSERVICE'.)
    This error indicates that you cannot connect to the server. Make sure the service URL is correct, firewall and network settings on this computer and on the server computer are configured properly, and the appropriate services have been started on the server.
    Error details:
    Could not complete the request to remote agent URL 'http://[mydomain].web709.discountasp.net:8172/msdeploy.axd/MSDEPLOYAGENTSERVICE'.
    The underlying connection was closed: An unexpected error occurred on a receive.
    Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
    An existing connection was forcibly closed by the remote host
    Publish failed to deploy.

    I have enabled the "Web Deployment Tool" MS IIS Manager in my IIS tools in the control panel. I have changed the .NET version to 4.0 and the app pool pipeline mode is "Integrated". I picked up the port number 8172 from a deployment video that I saw.

    What other settings do I need to change?

    Thanks,
    Sandeep
     
  2. dmitri

    dmitri DiscountASP.NET Staff

    Please make sure you are not deploying your project with the alternative URL in "Site/application" field. This field should have your actual primary domain of your account. If it still does not work, please open a support ticket here and provide a screen shot of the settings you are using to deploy your application similar to the screen capture in this KB article.
     
  3. Raised a ticket for this, but the support guy asked me to use the FTP service as it is working for me and said that they support the FTP version. I wanted the web deploy thing working. So, I am a bit disappointed with the support.

    Sandeep
     
  4. dmitri

    dmitri DiscountASP.NET Staff

    We reviewed your ticket and found a mistake in "Service URL" field on the screen shot you provided. The solution was emailed to you. Please note that you can always reopen the ticket at any time and reply to it until the issue is resolved.
     
  5. Thanks for your help on the ticket Dimitri!

    Issues with what I was doing:
    "http://[mydomain].web709.discountasp.net:8172/msdeploy.axd" should be just "http://web709.discountasp.net:8172/msdeploy.axd"

    site/application field to be: <mydomain>.com (no www or the URL mentioned in the control panel)

    and in credentials: check "allow untrusted certificate".

    Dimitri is an awesome guy!

    Sandeep
     
  6. dmitri

    dmitri DiscountASP.NET Staff

    Thank you for your feedback. There were several issues and instead of dealing with them at once, we solved them one-by-one. That's why it took longer then usual. I am glad it is working now.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page