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()