Search code examples
asp.net-mvc-3azurevisual-web-developerwebrole

mvc 3 azure webrole in VWD 2010


I want to add a MVC 3 Webrole in my Azure project. But I am not able to find a mvc3 template in visual web developer when I go to add dialog from "Add new web role". When it comes to mvc project only mvc 2 web role is available. I have the latest version and updates of vwd 2010 (installed just last week) and also mvc 3 toolkit is installed.


Solution

  • Update - seems like this is a known problem - here's one rather nasty workaround - http://www.jimandkatrin.com/CodeBlog/post/MVC3-in-Azure.aspx

    Alternatively, just create your web application as a "normal project" and then afterwards add it as an existing role to your cloud project.

    After you've done this you will need to make sure you "copy local" the necessary mvc3 assemblies - similar to http://datachomp.com/archives/deploy-mvc3-to-shared-hosting/


    One possibility - check that you have ".Net Framework 4" selected in your dialog - if you have 3.5 selected then MVC3 won't show up.


    The only other possibility I can think of is that it's an install issue - does the MVC3 show up when you just try create a new web app? (not using Azure).