WebPICmdLine.exe not working on Windows Azure

الإجابة WebPICmdLine.exe not working on Windows Azure

  • Thursday, April 14, 2011 5:01 AM
     
      Has Code

    Hi All,

    I am working on Windows Azure SDK 1.4 version. I have written an sample application having a startp script. Script is as below:

    "%~dp0\WebPICmdLine.exe" /Products: WDeploy /xml:https://www.microsoft.com/web/webpi/2.0/RTM/WebProductList.xml /log:webdeploy.txt
    
    net stop wmsvc
    
    net start wmsvc 

    If application is deployed on Azure along with this script, webrole goes in busy and aborted state. If I remove this script and deploy an application, it works fine, without any error.

    Is anyone faced this kind of issue or anyone has an idea about this issue? OR anyone know how I can see log file /log:webdeploy.txt mentioned in command and where this file wil be located after deploying an application on Windows Azure?

    Anykind of suggestion are welcome.

    Thanks,

    TA

All Replies

  • Thursday, April 14, 2011 5:09 AM
    Moderator
     
     
    can you ensure that you're using the any_cpu build of the WebPICmdLine tool?
    Cory Fowler Windows Azure MVP http://blog.syntaxc4.net
  • Thursday, April 14, 2011 5:19 AM
     
     Answered

    Don't you need a /accepteula in there?

    A handy trick is to make your startup task a "background" startup task, and then use remote desktop to pop onto the box and see what's going on.

    • Marked As Answer by TAdhav Thursday, April 14, 2011 8:52 AM
    •  
  • Thursday, April 14, 2011 5:27 AM
     
     
    How I can find it out if build that I am having is against any_cpu?
  • Thursday, April 14, 2011 5:29 AM
     
     

    HI Sheve,

    I set "background" for startup task and also added /accepteula in cmd. However I am not able to understand how to use remote desktop. can you please point me out that?

     

  • Thursday, April 14, 2011 6:14 AM
    Moderator
     
     
  • Thursday, April 14, 2011 9:01 AM
     
      Has Code

    Hi Steve,

    by adding /accepteula and setting script as "background" it is working fine. But now I am facing another issue. When I am publishing application from VS2010, it is giving an error:

    Web deployment task failed.(Remote agent (URL http://azure-fast-deploy.cloudapp.net//MSDEPLOYAGENTSERVICE) could not be contacted. Make sure the remote agent service is installed and started on the target computer.)
    The requested resource does not exist, or the requested URL is incorrect.
    Error details:
    Remote agent (URL http://azure-fast-deploy.cloudapp.net//MSDEPLOYAGENTSERVICE) 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: (404) Not Found.

     Do you have nay idea what might be reason for this?

    Thanks,

    Tanuja