I have problem on NHibenate assembly load problem.
error details :-
"Could not load file or assembly 'NHibernate, Version=3.0.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"
Did you also reference
Iesi.Collections
Castle.DynamicProxy2
Antlr3.Runtime
Related
So, i sent the project directory to my friend, but whenever he runs it he allwys get this error we are trying to search for a solution but we can find any
The error says:
System.IO.FileNotFoundException: 'Could not load file or assembly
'System.Data.Common, Version=6.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The
system could not find the specified file.'
Installed Microsoft.ToolKit.Uwp.UI.Controls from nuget to use MarkDownTextBlock control in my xaml user control. But ended up with error assembly is not strongly named.
To avoid it, Installed StrongNamer from nuget but now ended up with error 'Could not load file or assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
Are there any alternatives to avoid errors from step 1 or step 2?
I have a project in Xamarin.Forms I'm using following line to parse the JSON to object.
var jsonObj = JsonConvert.DeserializeObject(resultstringjson);
It works properly in Xamari.Android and Xamarin.iOS but when I'm running it in UWP it shows following error.
Could not load file or assembly 'System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Does any one have idea how to fix it?
You can try adding System.Runtime.Serialization.Primitives to you project.json file in your UWP project directly, like this:
"dependencies": {
"System.Runtime.Serialization.Primitives": "4.0.10-*"
}
After installing this both manually and via the package manager I continue to see this error. I was wondering if any of you have encountered this. I get this when I use the ?f.detect=true.
{"dx":0.0,"dy":0.0,"dw":800.0,"dh":510.0,"ow":800.0,"oh":510.0,"cropx":0.0,"cropy":0.0,"cropw":800.0,"croph":510.0,"features":null,"message":"Could
not load file or assembly 'OpenCvSharp, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=6adad1e807fea099' or one of its
dependencies. The located assembly's manifest definition does not
match the assembly reference. (Exception from HRESULT: 0x80131040)"}
I have a solution with several projects. I changed a couple of references for Fluent nHibernate to NuGet packages (v1.3.0.717). Recently I changed another project and added the current Fluent package, 1.2.0.712 (earlier but current) and my app will build but not run. The current version points to nHibernate v3.1.0.4 but somewhere it clashes with v3.2.9.4000 which the previous version of Fluent referenced.
Inner Exception
{"Could not load file or assembly 'NHibernate, Version=3.1.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies.
The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"
NHibernate, Version=3.1.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4"}
Exception
Could not load file or assembly 'NHibernate, Version=3.2.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies.
The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
What do I do to clean this project up and get it running again?
Just remove all NHibernate/Fluent Nhibernate related packages and run command
Install-Package FluentNHibernate -Version 1.3.0.717
It will install correct package for you.
For some reason this package is not marked as current version. That is why Nuget gives you old one.