Cannot publish with 1-click in VS 2010

Discussion in 'ASP.NET / ASP.NET Core' started by PJ2010, Jun 7, 2010.

  1. I have successfully published using Visual Studio 2008 here on discountASP.net, but I cannot do so in Visual Studio 2010, despite following the instructions found here: http://support.discountasp.net/KB/a792/how-do-i-deploy-visual-studio-2010-web-application.aspx

    Anybody else? Notice the weird "Error 1" below. Why is stuff being added (automatically) at *** ?site=http: ***? [https://web707.discountasp.net:8172/MsDeploy.axd?site=http:] The Visual Studio 2010 tool input was only up to and not including the question mark, i.e. stopping at "axd". Anybody else see this?


    Below is the error I get.

    Here is the information I input into Visual Studio 2010 "Publish" screen:

    Service URL:
    http://MYCOMPANYNAME.web707.discountasp.net/HiWorldVS10_06082010

    //The stuff: HiWorldVS10_06082010 is my folder on DiscountASP where the app is to go. I already created it, before using the Publish tool in Visual Studio 2010.

    Site/application: https://web707.discountasp.net:8172/MsDeploy.axd

    Error 1 Web deployment task failed.(Remote agent (URL https://web707.discountasp.net:8172/MsDeploy.axd?site=http:) could not be contacted. Make sure the remote agent service is installed and started on the target computer.)
    Make sure the site name, user name, and password are correct. If the issue is not resolved, please contact your local or server administrator.
    Error details:
    Remote agent (URL https://web707.discountasp.net:8172/MsDeploy.axd?site=http:) could not be contacted. Make sure the remote agent service is installed and started on the target computer.
    An unsupported response was received. The response header 'MSDeploy.Response' was '' but 'v1' was expected.
    The remote server returned an error: (401) Unauthorized. 0 0 WebApp1

    //INPUT BY ME:

    Service URL:
    http://MYCOMPANYNAME.web707.discountasp.net/HiWorldVS10_06082010

    //The stuff: HiWorldVS10_06082010 is my folder on DiscountASP where the app is to go. I already created it, before using the Publish tool in Visual Studio 2010.

    Site/application: https://web707.discountasp.net:8172/MsDeploy.axd
     
  2. mjp

    mjp

  3. It works with FTP rather than web publish...

    Yes, I've done this before (since I've published successfully with Visual Studio 2008). But I did it again just now...and again I get failure. Have others had problems? It might be that discountasp.net is more set up with VS2008 rather than VS2010. Maybe this IIS7 manager is more for the earlier VS rather than the latest version?


    Can customer service deal with this, or is this the best forum for asking this question?

    I also want to tell you that I'm very happy with DASP so far. Very pleased, and even if VS2010 publish does not work, VS2008 does, and for now that's good enough. But I want to eventually get this to work.

    UPDATE: I used the procedure for FTP rather than Web Publish and it works, see here: http://support.discountasp.net/KB/a789/how-do-i-deploy-visual-studio-2010-web-application.aspx

    I'm happy it works using FTP and all's well that ends well.

    PJ
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    The error looks like you are using the wrong username / password.

    Are you able to connect through IIS Manager using the same credential?
     
  5. just re-routed dns name to discountasp.net

    hi, i just re-routed the dns name of my registered domain from godaddy.com to discountasp.net. I tried to publish my web application onto the server minutes later but it didnt work.

    Visual studio shows this error message :

    Error 1 Web deployment task failed.(Remote agent (URL https://web709.discountasp.net:8172/MsDeploy.axd?site=moomba.com) could not be contacted. Make sure the remote agent service is installed and started on the target computer.)
    Make sure the site name, user name, and password are correct. If the issue is not resolved, please contact your local or server administrator.
    Error details:
    Remote agent (URL https://web709.discountasp.net:8172/MsDeploy.axd?site=moomba.com) could not be contacted. Make sure the remote agent service is installed and started on the target computer.
    An unsupported response was received. The response header 'MSDeploy.Response' was '' but 'v1' was expected.
    The remote server returned an error: (401) Unauthorized. 0 0 Olimus

    I entered my permanent url into the Site/Application field in 'Publish' function to see if it works but it also does not. even though i specified the permanent url.

    please help!

    Thanks!!
     
  6. Followup

    If you convert your entire site to ASP. NET 4.0, you can publish from inside Visual Studio 2010, but then my Visual Studio 2008 apps break. However, this is not the fault of DASP. What I probably will end up doing is buying another account and use that for Visual Studio 2010 development.

    Such is the price of "progress"!
     
  7. mjp

    mjp

    Thanks for following up. Progress indeed.
     
  8. ...I'm curious, we have always needed to fudge the solution file when VS projects are upgraded. Is that still the case? Can the solution file be edited to make this work?
     

Share This Page