Hi,
I have run in to some problem after upgradering from Umbraco 7.0.1 to the latest version through nuget in Visual Studio. I had a contact form that worked fine but after upgradering, I get this error in my controller
The type 'System.Web.Mvc.Controller' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
If I go to Rererences -> Framework and search for that reference it shows that I´m using version 4.0.0.1
And if I trie to reinstall it through References and Manage NuGet Packages I get this error.
Updating 'Microsoft.AspNet.Mvc 4.0.30506.0' to 'Microsoft.AspNet.Mvc 5.2.2' failed. Unable to find a version of 'UmbracoCms.Core' that is compatible with 'Microsoft.AspNet.Mvc 5.2.2'.
And I have some more reference that seems missing:
In regards to the first error it's probably because recently Microsoft patched the System.Web.MVC binary since they found a security issue with it. So the reference you have to System.Web.Mvc in your project needs to be removed and then re-added in order to get it working again.
When you say you're trying to re-install...is I suppose it's the MVC framework rather than Umbraco? Or how are you doing it? Umbraco is not compatible with MVC 5 yet. which is probably why you see the first error.
Thanks Jan,
I got rid of the first problem after following your link.
But now I get this error, google translate
Can not load file or assembly Mini Profiles, Version = 2.1.0.0, Culture = neutral, PublicKeyToken = b44f9351044011a3 or one of its dependencies. Can not find file
I think it´s a simular problem that I hade with System.Net.Mvc. I manually removed MiniProfiler.dll, but when I trie to reinstall it I get this error:
Install failed. Rolling back...Install-Package : Updating 'MiniProfiler 2.1.0' to 'MiniProfiler 3.1.1.140' failed. Unable to find a version of 'UmbracoCms.Core' that is compatible with 'MiniProfiler 3.1.1.140'.
At line:1 char:16
+ Install-Package <<<< MiniProfiler
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Missing refernce to assembly after upgrading
Hi, I have run in to some problem after upgradering from Umbraco 7.0.1 to the latest version through nuget in Visual Studio. I had a contact form that worked fine but after upgradering, I get this error in my controller
If I go to Rererences -> Framework and search for that reference it shows that I´m using version 4.0.0.1
And if I trie to reinstall it through References and Manage NuGet Packages I get this error.
And I have some more reference that seems missing:
\App_Start\FilterConfig.cs
GlobalFilterCollection
HandleErrorAttribute
usercontrols\MultipleFileUpload\MultipleFileUpload.ascx.cs
noerd
MultipleFileUploadControl
Global.asax.cs
AreaRegistration
Hi Jonas
In regards to the first error it's probably because recently Microsoft patched the System.Web.MVC binary since they found a security issue with it. So the reference you have to System.Web.Mvc in your project needs to be removed and then re-added in order to get it working again.
Otherwise try reading this answer on SO http://stackoverflow.com/questions/26393157/windows-update-caused-mvc3-and-mvc4-stop-working
When you say you're trying to re-install...is I suppose it's the MVC framework rather than Umbraco? Or how are you doing it? Umbraco is not compatible with MVC 5 yet. which is probably why you see the first error.
Hope this helps.
/Jan
Thanks Jan, I got rid of the first problem after following your link.
But now I get this error, google translate
Hi Jonas
Google translate? What do you mean by that? Sorry I'm a bit confused :)
/Jan
The .Net error message, it was in Swedish ;-) Sry for not clearing that out...
I think it´s a simular problem that I hade with System.Net.Mvc. I manually removed MiniProfiler.dll, but when I trie to reinstall it I get this error:
Did you get this sorted? Having the same issue.
is working on a reply...