Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

The type initializer for 'Npgsql.NpgsqlConnection' threw an exception (Npgsql Nuget package 7.0.0-preview.4)

$
0
0

My c# Windows form app project (.NET Framework 4.8) is using latest Npgsql Nuget package 7.0.0-preview.4It is working fine on my pc.

When I install it on another pc (win 10 PRO) using the Microsoft install deployment, it cannot call any Npgsql classes, it's always throwing exception :

The type initializer for 'Npgsql.NpgsqlConnection' threw an exception. at MyProject.FormMain..ctor()

The type initializer for 'Npgsql.NpgsqlCommand' threw an exception. at MyProject.FormMain..ctor()


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>