I am trying to deploy an ASP .NET MVC4 application to Windows Azure, I have a startup task which installs
MVC4. But my role is not coming online, the deployment status is:
Wating for Role to start…System start up tasks are running
Sites were deployed…
Recovering…
Wating for Role to start…System start up tasks are running
Sites were deployed…
Recovering…
Wating for Role to start…System start up tasks are running
Sites were deployed…
Recovering…
This is keep on happening.
Another intersting thing i noticed is if i RDP into the Role instance then the role become ready state..
Any one has an idea, whats going wrong here?
Thanks
Anu
I got the solution, the issue was the permission of the user ( i think its ‘system’) who runs the start-up task to install MVC4. I have updated my start-up script (installmvc4-main.cmd) to do the following:
Creates another script ‘installmvc4-impl.cmd’ which invokes the a power shell script ‘installmvc4.ps1’ with execution policy set to unrestricted.
Creates a powershell script ‘installmvc4.ps1’ to install mvc4 using the installer included in the package (I downloaded it from http://www.microsoft.com/en-us/download/details.aspx?id=30683)
Creates a user, add it to administrator group and schedule a task to run ‘installmvc4-impl.cmd’ using this user.
Here the script ‘installmvc4-main.cmd’:
Note: Make sure the character encoding of the srartup task installmvc4-main.cmd is ANSI.