Integrating external libraries error: Common Language Runtime detected an invalid program
-
I was trying to use Npgsql.dll to connect with postgres, but I got this problem. I read some about it, and has to be with the builder in general.
I tried changing the .NET version, the optimization of the compiler but nothing.
Perhaps I have to do something more to have it working with the GTA V.
Thanks.
The exact error is this:
[15:29:56] [ERROR] Caught fatal unhandled exception:
System.InvalidProgramException: Common Language Runtime detected an invalid program.
at Npgsql.NpgsqlCommand.ExecuteNonQuery()
at IndicatorControl.OnTick(Object sender, EventArgs e)
at GTA.Script.raise_Tick(Object value0, EventArgs value1)
at GTA.Script.MainLoop()