Could not load file or assembly 'WebGrease' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Related
I have installed AjaxControlToolkit package and added those .dll files, also added them to reference. The problem is when I use ComboBox in the code it is showing error
Could not find schema information for the element
AjaxControlToolkit
error;
Could not load file or assembly 'AjaxControlToolkit, Version=17.1.1.0,
Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its
dependencies. The located assembly's manifest definition does not
match the assembly reference. (Exception from HRESULT: 0x80131040)
how to fix this problem?
I am trying to install Google.api.customsearch.v1 client library from Nuget but I get this error when I try to run my asp.net website.
Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0,
Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its
dependencies. The located assembly's manifest definition does not
match the assembly reference. (Exception from HRESULT: 0x80131040)
I have discovered stackoverflow for such issue, but non of them resolved my problem. any suggestion?
Ok, I fixed the problem by updating Newtonsoft.Json package. Run the following command in the Package Manager Console
Update-Package Newtonsoft.Json
MVVMLight 4.3.31.28629 in WPF project, VS2013.
The MVVMLight install (via nuget) added Microsoft.Practices.ServiceLocation 1.2.0.0.
Inspecting MvvmLight.Extras.WPF4, I find this:
My application runs in the debugger, but not when launched from the command line. (It throws an exception from the ViewModelLocator ctor, trying to find Microsoft.Practices.ServiceLocation 1.0.0.0.)
Why does it run inside the debugger, and how do I fix it to run outside the debugger?
Thanks --
UPDATE
What the hell? Why are two versions of the same assembly referenced?
at ProdoMetro.ViewModel.ViewModelLocator..ctor()
InnerException: System.IO.FileLoadException
HResult=-2146234304
Message=Could not load file or assembly **Microsoft.Practices.ServiceLocation, Version=1.2.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)
Source=TimerDoro
FileName=Microsoft.Practices.ServiceLocation, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
FusionLog=""
StackTrace:
at ProdoMetro.ViewModel.ViewModelLocator..cctor()
InnerException: System.IO.FileLoadException
HResult=-2146234304
Message=Could not load file or assembly **Microsoft.Practices.ServiceLocation, Version=1.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)
FileName=Microsoft.Practices.ServiceLocation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
FusionLog==== Pre-bind state information ===
LOG: DisplayName = Microsoft.Practices.ServiceLocation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
(Fully-specified)
The full error:
Parser Error Message: Could not load file or assembly 'AjaxControlToolkit, Version=4.1.7.1005, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
This doesn't make sense because the package version I installed was 4.1.7.1213. When I look at the build server logs Nowhere do I see any other version than that.
I am working on a project in asp.net using Telerik Controls.
Everytime when i run my project i am getting the following error:
Could not load file or assembly
'Microsoft.Practices.EnterpriseLibrary.Configuration.Design,
Version=3.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its
dependencies.
The located assembly's manifest definition does not match the
assembly reference. (Exception from HRESULT: 0x80131040)
But when I refresh the page, its working fine. Why I am getting this error?
Thanks
This error occurs when the manifest definition of the assembly file doesn't match the actual reference.
See here for more info:
The located assembly's manifest definition does not match the assembly reference
http://blogs.msdn.com/b/junfeng/archive/2004/03/25/95826.aspx
You could try changing the reference version from Version=3.1.0.0 to Version=3.1.0.1, or another version if you might know it.