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!!

This article is part of the GWB Archives. Original Author: Harish Ranganathan

New on Geeks with Blogs

  • We Won The One Award I Actually Care About

    Full Scale made the Inc. 5000 for the fifth year straight, the 12th listing across my three companies. Here is why the one award you cannot buy is worth stopping for.

  • Your Customers Build the Features Now

    I let a tool I liked sit dead for a year rather than build the features I wanted. An MCP server meant I never had to, and your customers can do the same to your product.

  • Get the Size of a Directory in Linux the Easy Way

    du -sh for the quick answer, ncdu for the cleanup, df for the disk itself: every command for checking directory size in Linux, plus why du and df never agree.

  • Vim Search and Replace: The Ultimate Guide

    One :%s command replaces every match in a file before a find dialog would even open. The Vim substitute patterns worth the muscle memory: flags, ranges, capture groups, and multi-file edits.