Problems deploying MVC4 on Azure

I have a strange problem with Azure!

I recently updated my deployed site from MVC3 to MVC4 . I did this by creating a new MVC4 project that uses only Nuget packages, so should it be "bin deployable"? I copied only the main sections throughout my Web.config in the root and in the "Views" folder.

Everything works fine locally, but after deploying to Azure, I found that the role was stuck in Busy, but the site is working! It also spontaneously recycles the instance (assuming due to its state of employment).

I have added Intellitrace to the deployment and complain that this link does not exist:

The role entry point could not be loaded due to the following exceptions:

- System.IO.FileLoadException: Failed to load file or assembly "System.Web.Mvc, Version = 3.0.0.0"

I don’t know why it is trying to download the MVC Version 3 link in project 4. I searched Web.configs for any links to 3.0.0.0, and the project links seem to be fine.

Please, help! Are there any additional debugging steps that I can follow?

Thank!

+5
source share
3 answers

This seems to be the same question as http://social.msdn.microsoft.com/Forums/en-US/windowsazuredevelopment/thread/9c2f6b62-185d-4a38-8bb5-eda1917604d9 . As indicated in another thread:

? Windows Azure - MVC 4 ( SDK 1.7), :

  <dependentAssembly>
     <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
     <bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
   </dependentAssembly>
+5

, true System.Web.Mvc, ?

0

, Azure, , , ,

, , script . Windows Server R2, ServiceConfiguration.Cloud.cscfg. OsFamily " 1" " 2".

You can find more information at this link: Windows Azure Launch Tasks , written in Italian, but you can translate it into English.

0
source

All Articles