Web Role Instances recreated, repaired while deploying MVC 3 Applications on Windows Azure

Recently, I was deploying an MVC 3 Application on Windows Azure.  The deployment took longer than expected and the Roles were just restarting/repairing and it couldn’t just start the role instances.  Only thing that seemed to have worked was uploading the Packages.  Post that, the Roles were simply unable to start and be ready.  I deleted the deployment, re-created the package and deployed.  Still no avail.  It would successfully upload the package but post that the roles would never be able to start.  They will just keep getting recycled.

I then figured out that MVC 3 is not supported in Windows Azure yet and in fact, you need to explicitly add MVC 3 assemblies to the bin folder or have MVC 3 installed as a start up task along with your Windows Azure project.

Steve Marx has an excellent post (and to the point, of all the posts I read) on getting MVC 3 installed as a start up task on Windows Azure, at http://blog.smarx.com/posts/asp-net-mvc-in-windows-azure

Just follow the instructions and you should be fine to have your MVC 3 Application running on Windows Azure.

Cheers!!

Print | posted on Tuesday, June 14, 2011 12:16 PM

Comments on this post

# re: Web Role Instances recreated, repaired while deploying MVC 3 Applications on Windows Azure

Requesting Gravatar...
An MVC 3 application is used in software engineering that is somewhat like an architectural pattern. Even though this is a high tech type of application, it has been around for quite some time already.
Left by Mario Romano on Dec 29, 2011 7:38 AM

Your comment:

 (will show your gravatar)