Friday, May 22, 2015

How to solve problem: System.IO.FileLoadException was unhandled by user code HResult=-2146234304?

Make sure you get latest version WebGrease 1.6

Full error message:
System.IO.FileLoadException was unhandled by user code   HResult=-2146234304
  Message=Could not load file or assembly 'WebGrease, Version=, 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)
  FileName=WebGrease, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35
  FusionLog==== Pre-bind state information ===
LOG: DisplayName = WebGrease, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35

Install-Package Microsoft.AspNet.Web.Optimization
Update-Package WebGrease
Uninstall-Package Microsoft.AspNet.Web.Optimization
Uninstall-Package WebGrease
Install-Package Microsoft.AspNet.Web.Optimization
Update-Package WebGrease

1 comment:

  1. This is an amazing blog,it gives very helpful messages to us.Besides that Wisen has established as Best Dot Net Training in Chennai. or learn thru ASP.NET Online Training . Nowadays Dot Net has tons of job opportunities on various vertical industry.