after upgrading Umbraco to 7.5.2 with nuget I am getting the following error
CS1705 Assembly 'umbraco' with identity 'umbraco, Version=1.0.6079.16195, Culture=neutral, PublicKeyToken=null' uses 'System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Mvc' with identity 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
I have replaced and merged the web.config and removed and added references. any input would be great.
thanks for the reply. Something happened during the migration. Is there a reference somewhere that tells what these should be for version 7.5.2? this is what is in my web.config but still get the error.
I have all of these you listed and have checked all three web.config's, in media, views, and root. it has to be a config file. somewhere else. I have even done a fresh sln from my laptop and did an upgrade with no luck.
Did you only check the config files? Make sure to check all of the files.. so:
Have you compared all files between the default 7.5.2 zip file and your upgraded site?
Specifically: have you checked that the dlls in your bin folder are the same as the ones in the regular 7.5.2 zip file?
General troubleshooting tips for assembly version conflicts:
Delete any previously-compiled Umbraco binaries in your bin folder
(don't delete any plugin DLLs!)
Do a search of the ENTIRE solution directory for any existing
references to Mvc 4 binaries and replace them accordingly.
Notes:
*.config and *.csproj files are the most likely hideouts
these could be project dependency references, nuget package references, or assembly binding redirects, so don't make any assumptions; when desperate I sometimes just search for the version string, e.g. 4.0.0.0, OR the assembly name.
Visual Studio may not find everything, as it won't enter loaded csproj files; my favorite tool for this is grepWin, although Notepad++ (though slower) will allow you to preview all the lines.
Re-build and Restart your website, then try again.
I'm sure someone who's more experienced than me at VS would have more efficient advice, but this seems to work for me.
I have to honestly say i tried everything in the book. something was wrong with the solution and it would revert back to old Dll's As i looked at the logs i found where i did a nuget update of Umbraco form when the site had umbraco version 7.4.2. Umbraco Forms 4.3.8 installed Umbraco 7.3 and kept overwriting those Dll's. My solution was test by making a local install and using Per's method to upgrade mom website.. it worked.
after upgrading Umbraco to 7.5.2 with nuget I am getting the following error
CS1705 Assembly 'umbraco' with identity 'umbraco, Version=1.0.6079.16195, Culture=neutral, PublicKeyToken=null' uses 'System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Mvc' with identity 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
I have replaced and merged the web.config and removed and added references. any input would be great.
Sounds like you need an assembly binding redirect in your web.config. Something like this:
Nicholas
thanks for the reply. Something happened during the migration. Is there a reference somewhere that tells what these should be for version 7.5.2? this is what is in my web.config but still get the error.
All I think i should do is check each file version and match them up? please advise.
actually this my active web.config.
Those are correct, you'll also want to add the following:
And when that doesn't help, go through "the 3 C's" - https://cultiv.nl/blog/how-to-diagnose-umbraco-upgrade-problems/
Sebastiaan
I have all of these you listed and have checked all three web.config's, in media, views, and root. it has to be a config file. somewhere else. I have even done a fresh sln from my laptop and did an upgrade with no luck.
Did you only check the config files? Make sure to check all of the files.. so:
Have you compared all files between the default 7.5.2 zip file and your upgraded site?
Specifically: have you checked that the dlls in your bin folder are the same as the ones in the regular 7.5.2 zip file?
yes i have gone through all
General troubleshooting tips for assembly version conflicts:
Delete any previously-compiled Umbraco binaries in your bin folder (don't delete any plugin DLLs!)
Do a search of the ENTIRE solution directory for any existing references to Mvc 4 binaries and replace them accordingly.
Notes:
*.config
and*.csproj
files are the most likely hideouts4.0.0.0
, OR the assembly name.Re-build and Restart your website, then try again.
I'm sure someone who's more experienced than me at VS would have more efficient advice, but this seems to work for me.
I have to honestly say i tried everything in the book. something was wrong with the solution and it would revert back to old Dll's As i looked at the logs i found where i did a nuget update of Umbraco form when the site had umbraco version 7.4.2. Umbraco Forms 4.3.8 installed Umbraco 7.3 and kept overwriting those Dll's. My solution was test by making a local install and using Per's method to upgrade mom website.. it worked.
is working on a reply...