Jump to content

Npgsql - Common Language Runtime detected an invalid program


Recommended Posts

Guest daniele spada
Posted

I have a simple API developed with .NET 8, which connects to a postgreSQL DB using Npgsql version 4.0.0 .The API opens the connection, queries the database version, and closes the connection.the API was uploaded to 2 servers, running Windows Server 2019 and exposing the API via IIS.Both servers have:the same version of IISsame IIS configurationsame deployment pathsame API build loadedsame .NET Core hosting bundleThe API build has:same web.configsame pathsame librarysame buildBut, while on one server everything works correctly, the other generates this error during the connection.open(); Values

 

Continue reading...

  • Replies 0
  • Created
  • Last Reply

Popular Days

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...