Need to add the assembly in Package.package:
Here is a blog specify the similiar question for your reference:
Could Not Load File Or Assembly Or One Of Its Dependencies – Issue In SharePoint Farm Solution
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies
I am trying to use npgsql in visual web part but i got this error even i have added assembly.But for testing purpose when i created a .net website it works fine i don't know what the problem for using this assembly in sharepoint web part.
Need to add the assembly in Package.package:
Here is a blog specify the similiar question for your reference:
Could Not Load File Or Assembly Or One Of Its Dependencies – Issue In SharePoint Farm Solution
Thank you my problem is Solved by installing 3. ... version of NPGSQl