Ask a questionAsk a question
 

Proposed AnswerAzure runtime error

  • Wednesday, October 28, 2009 12:44 PMRajkumar Ramakrishnan Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Each time the windows hosted application executes in local development fabric, it ends up with a error stating that
    "Role start failed ". The problem seems to be due to code optimization (that is what vs2008 showed). Moreover it doesn't show where the error occurred so i am not able to resolve it anyway

All Replies

  • Wednesday, October 28, 2009 1:01 PMBrentDaCodeMonkey Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Just to eliminate the obvious, is the service project or the role project set as your startup project in visual studio?
  • Thursday, October 29, 2009 6:34 AMYi-Lun LuoMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello, what do you mean windowds hosted application? Do you mean worker role? Can you debug into your worker role to see if it at least the Start method is invoked (put a break point at the beginning of the Start method)? Also, does this problem happen even on an empty worker role, or happens only on your worker role? In the latter case, can you post the code?
    Lante, shanaolanxing This posting is provided "AS IS" with no warranties, and confers no rights.
  • Sunday, November 01, 2009 8:32 AMRajkumar Ramakrishnan Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    just to be very clear

    created a new cloud service project -> added a web role to it

    i did nothing else, not even added a single control but simply pressed F5.

    development fabric and storage starts up and runs

    Then the error pops up in the vstudio reporting the same error that i previously posted.
     
    i tried executing step by step but it seems the error pops up from nowhere. it doesn't even show the line at which error has occurred. This is what troubling me a lot since i couldn't pinpoint the error.

    Adding any control has no effect on the error

  • Sunday, November 01, 2009 8:35 AMRajkumar Ramakrishnan Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    service project is set as startup project
  • Sunday, November 01, 2009 8:38 AMAnton Staykov Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Proposed Answer
    Hello,
    You must set the Service project as startup, not the Role project.
    • Proposed As Answer byAnton Staykov Sunday, November 01, 2009 8:38 AM
    •  
  • Sunday, November 01, 2009 9:31 AMRajkumar Ramakrishnan Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    well, i made a mistake while posting. The service project is set as startup project. (if i would have set the web role as startup project there should be no error since it is going to execute a simple asp.net project)
  • Sunday, November 01, 2009 9:38 AMAnton Staykov Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Before the error you see, do you see the Development Storage and Development Fabric up and running?
    Also do you have the SQL Server Express running (it is required by Development Storage & Fabric). If both (storage and fabric) are running - try to launch Development fabric UI to see if there is service deployed and what is the status of it. There should be one (or more) service deployments there with single webrole.
    Oh, just remembered one more thing: check out the ServiceConfiguration.cscfg file from the service project and see what is the number of instances for your WebRole - it should be at least 1 ;)
  • Tuesday, November 03, 2009 9:37 AMRajkumar Ramakrishnan Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    yes both are up and running. I can even see the web role running. To be precise, the error pops up when the web role is requested for its health status