Reputation: 19
While running .NET code in my system, I'm getting the below exception:
Could not load file or assembly 'Sybase.AdoNet2.AseClient, Version=2.155.8000.0, Culture=neutral, PublicKeyToken=95d94fac46c88e1e' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Upvotes: 0
Views: 1369
Reputation: 8184
In case of .Net Core I could solve the error by using a different approach to connect:
public MyContext() : base(new SybaseDataProvider("Core"), "You connection string here") { }
Before that I was trying to implement the ILinqToDBSettings
file, but as I saw inside the code of linq2db
there is a comment about that incompatibility:
Upvotes: 1