user3668427
user3668427

Reputation: 19

Could not load file or assembly 'Sybase.AdoNet2.AseClient, exception in ASP.NET

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

Answers (1)

Felipe Augusto
Felipe Augusto

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:

enter image description here

Upvotes: 1

Related Questions