Respondida ASP.NET MVC 3 and Azure

  • Saturday, August 21, 2010 4:03 AM
     
     

    I changed the reference to MVC from 2.0 to 3.0 in my web role and it worked locally. I want to know if when mvc 3 finnaly goes live it will be supported in Azure soon, because I'm starting the development of a new application and I want to work with the last technology.

    Thanks

All Replies

  • Saturday, August 21, 2010 4:37 AM
     
     

    Have you tried it in Azure? You should be able to just "copy local" the appropriate dlls and it should work just like it works locally. Does that not work for you?

    I could be wrong, but I don't think that any version of MVC was supported until recently (July) when support for .NET 4 was made official. So you had to take the approach I just outlined, whether you were on v1 or v2. It should work the same with v3.

  • Saturday, August 21, 2010 4:41 AM
     
     Answered

    It works fine with Azure. We are using it since the day the preview came out. Just adhere to vboris advice and set copy local to true for the mvc dll. Also run through your web.config and check if you have assembly bindings from 1.0 to 2.0 in it as per upgrade release notes those have to be changed from 1.0 to 3.0. For safety I added another one from 2.0 to 3.0 for the mvc dll

     

  • Saturday, August 21, 2010 4:42 AM
     
     

    (By "not supported" I of course meant that System.Web.Mvc wasn't installed until recently. There were many MVC applications, including ours, running on Azure well before that)

  • Sunday, February 13, 2011 8:27 PM
     
     
    I think you would like this article by smarx: http://blog.smarx.com/posts/asp-net-mvc-in-windows-azure
    .Net C# developer