Update from 7.1.4 to 7.1.8 fails: Could not load file or assembly 'System.Web.Helpers'
I used nuget to upgrade from 7.1.4 to 7.1.8. I changed my dsn and added in some of my site-specific settings and get the delicious red text and yellow background error that doesn't really make sense to me. I copied all of it below. I am doing this locally for now in an attempt to fix another issue. Please help!
Could not load file or assembly 'System.Web.Helpers' or
one of its dependencies. The located assembly's manifest definition does
not match the assembly reference. (Exception from HRESULT: 0x80131040)
Description: An unhandled exception occurred during
the execution of the current web request. Please review the stack trace
for more information about the error and where it originated in the
code.
Exception Details: System.IO.FileLoadException:
Could not load file or assembly 'System.Web.Helpers' or one of its
dependencies. The located assembly's manifest definition does not match
the assembly reference. (Exception from HRESULT: 0x80131040)
Source Error:
An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Helpers' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Stack Trace:
[FileLoadException: Could not load file or assembly 'System.Web.Helpers' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
[FileLoadException: Could not load file or assembly 'System.Web.Helpers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +210
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +242
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +17
System.Reflection.Assembly.Load(String assemblyString) +35
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +122
[ConfigurationErrorsException: Could not load file or assembly 'System.Web.Helpers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +12495652
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +499
System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +131
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +331
System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +148
System.Web.Compilation.BuildManager.ExecutePreAppStart() +172
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1151
[HttpException (0x80004005): Could not load file or assembly 'System.Web.Helpers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12617364
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12456981
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34212
I found some pertinent sections of the web.config that has changed but I do not know why or how to get around it. This makes me think that the latest version of umbraco is relying on a new version of System.Web.Helpers but it didn't grab that from nuget. I don't know how to get it because the search in nuget returns nothing.
Any and all help is appreciated. Web.config excerpts below.
Laughing on the inside at this point but I basically threw away the new web.config and put my old one back in and it worked like gangbusters. I'm guessing I did not compare all the differences between old file and new file and missed some things.
I had a similar issue installing 7.2RC which was coming up with this
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)
ive had same issue with this one, but i think i might trying to add some model and new controller folder into solution explorer...and then i got this issue
i tried to look into web.config, this is the value
by the way, im new here...and im still a week old using umbraco and trying to add form when this is happen..
can anyone plz give me a solution or point me to the right direction??
I ran into similar issues when I updated the versions of MVC installed on my local machine. Turns out that it installed an incremented version of the 'System.Web.*' assemblies (i.e. MVC 4 becomes 4.0.0.1).
What I did was to rollback those updates rather than mess around with the web.config file. I guess you would have to install the updates on your IIS box (plus any other dev machines) to get it to work.
Update from 7.1.4 to 7.1.8 fails: Could not load file or assembly 'System.Web.Helpers'
I used nuget to upgrade from 7.1.4 to 7.1.8. I changed my dsn and added in some of my site-specific settings and get the delicious red text and yellow background error that doesn't really make sense to me. I copied all of it below. I am doing this locally for now in an attempt to fix another issue. Please help!
Could not load file or assembly 'System.Web.Helpers' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileLoadException: Could not load file or assembly 'System.Web.Helpers' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Helpers' could not be loaded.
Stack Trace:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34212
I found some pertinent sections of the web.config that has changed but I do not know why or how to get around it. This makes me think that the latest version of umbraco is relying on a new version of System.Web.Helpers but it didn't grab that from nuget. I don't know how to get it because the search in nuget returns nothing.
Any and all help is appreciated. Web.config excerpts below.
OLD WEB.CONFIG:
NEW WEB.CONFIG:
Laughing on the inside at this point but I basically threw away the new web.config and put my old one back in and it worked like gangbusters. I'm guessing I did not compare all the differences between old file and new file and missed some things.
I had a similar issue installing 7.2RC which was coming up with this
So I replaced
with
and all was good. I guess it's got something to do with the version of MVC installed on the server but for quick demo purposes I'm happy with this
ive had same issue with this one, but i think i might trying to add some model and new controller folder into solution explorer...and then i got this issue
i tried to look into web.config, this is the value
and this
by the way, im new here...and im still a week old using umbraco and trying to add form when this is happen.. can anyone plz give me a solution or point me to the right direction??
I ran into similar issues when I updated the versions of MVC installed on my local machine. Turns out that it installed an incremented version of the 'System.Web.*' assemblies (i.e. MVC 4 becomes 4.0.0.1).
What I did was to rollback those updates rather than mess around with the web.config file. I guess you would have to install the updates on your IIS box (plus any other dev machines) to get it to work.
is working on a reply...