Respondida ASP.NET MVC 3 and Azure

  • 2010年8月21日 4:03
     
     

    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

すべての返信

  • 2010年8月21日 4:37
     
     

    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.

  • 2010年8月21日 4:41
     
     回答済み

    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

     

  • 2010年8月21日 4:42
     
     

    (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)

  • 2011年2月13日 20:27
     
     
    I think you would like this article by smarx: http://blog.smarx.com/posts/asp-net-mvc-in-windows-azure
    .Net C# developer