System.Web.MVC Dependency Issue from 7.2.8 to 7.3.1
I have been trying for a week to update to to the latest version in hopes that the grid RTE macro bug has been fixed.
So after a week of trying, and updating VS, Nuget Package Manager, blah, blah, blah... I need to ask for help. I can not get it to work in my VS2013 project.
Could not load file or assembly 'System.Web.Mvc' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Any ideas why this is happening? If the first place anyone goes is the web.config (as I've seen in other threads)... I don't know why this should or would be an option.
I'm looking at project reference and it calls for version 4.0.2x.0. I see the webconfig now references 5.x.x. I noticed during the install from Nuget that MVC dll was being updated and does not show as available for update in Nuget anymore. What gives? Is the installer not updating Project references?
When I run into these kind of problems after upgrades, I've found it can be helpful to spot the problem by downloading a fresh copy of the version of Umbraco you are trying to upgrade to; and comparing using winmerge or similar the web.config files to see 'what version redirects' should be in place.
eg for 7.3.1, there is a redirect for System.Web.Mvc as follows:
There is some information in a blog post Sebastiaan wrote about the differences between an Umbraco project based on MVC4 and one on MVC5 which might also help pinpoint the problem:
After resolving dependancies. This was my next error.
Inheritance security rules violated by type:
'System.Web.Mvc.MvcWebRazorHostFactory'. Derived types must either
match the security accessibility of the base type or be less
accessible.
I re-ran these update recommendations and it took care of the issue:
System.Web.MVC Dependency Issue from 7.2.8 to 7.3.1
I have been trying for a week to update to to the latest version in hopes that the grid RTE macro bug has been fixed.
So after a week of trying, and updating VS, Nuget Package Manager, blah, blah, blah... I need to ask for help. I can not get it to work in my VS2013 project.
Any ideas why this is happening? If the first place anyone goes is the web.config (as I've seen in other threads)... I don't know why this should or would be an option.
I'm looking at project reference and it calls for version 4.0.2x.0. I see the webconfig now references 5.x.x. I noticed during the install from Nuget that MVC dll was being updated and does not show as available for update in Nuget anymore. What gives? Is the installer not updating Project references?
Hi Brett
Yes Umbraco 7.3.x now uses MVC 5
So the binding redirects 'should' have been updated via nuget.
I know when upgrading to 7.3.0 some binding redirects were missed by nuget: http://issues.umbraco.org/issue/U4-7193
When I run into these kind of problems after upgrades, I've found it can be helpful to spot the problem by downloading a fresh copy of the version of Umbraco you are trying to upgrade to; and comparing using winmerge or similar the web.config files to see 'what version redirects' should be in place.
eg for 7.3.1, there is a redirect for System.Web.Mvc as follows:
and packages.config file should have an entries to MVC5 here:
There is some information in a blog post Sebastiaan wrote about the differences between an Umbraco project based on MVC4 and one on MVC5 which might also help pinpoint the problem:
http://umbraco.com/follow-us/blog-archive/2015/7/29/upgrading-your-umbraco-site-to-mvc5-and-webapi2/
After resolving dependancies. This was my next error.
I re-ran these update recommendations and it took care of the issue:
http://umbraco.com/follow-us/blog-archive/2015/7/29/upgrading-your-umbraco-site-to-mvc5-and-webapi2/
Now at the update database screen.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.