postgresql - Why is Visual studio referring to Npgsql, version 4.0.0.0 when the latest version release by the Npgsql team is Version 2.1.0? -
I have an ASP.NET application that uses PostgreSQL and is using Npgsql as a data driver. Every now and then I am receiving this error:
The file or assembly could not be loaded 'NGPL, version = 4.0.0.0, culture = neutral, A clear definition of a public keynote = 5d8b90d52f46fda7 'or one of its dependencies does not match the assembly reference. (HRESULT: Exception from 0x80131040)
While the NPPS in my project is SQL version 2.1.0
What could possibly be the reason ?
There are two types of verions mentioned in the properties of a reference in the visual studio.
1) Runtime version - Version of .NET runtime was compiled against DLL
2) Version - Version of referenced DLL
Please enter your project Targeted .NET version. It should be matching or later version compared to referenced dll.