Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
AGo
Post Patron
Post Patron

Postgresql gateway failure

Hi!

With new update I thought Npgsql was no longer mandatory, but it seems to be if connecting with the gateway, so I followed the old path as always.

Updated .NET to last version 4.8 and installed Npgsql with GAC version 4.1.3. When adding datasource to gateway cluster I've got returned this error: The installed database provider 'Npgsql' targets an incompatible .NET Framework. Please install Npgsql version 4.0.10.0 or earlier.

 

Does this version combo of .NET and Npgsql has some problem. What versions should I use?

Thanks

1 ACCEPTED SOLUTION

It's now working with npgsql (4.0.10 and GAC) downgrade, hope it will be fixed soon with a full implementation of the ADO .NET data provider in the gateway.

View solution in original post

9 REPLIES 9
Anonymous
Not applicable

I reinstalled Npgsql but this time making sure to select "GAC Installation" and it appears to be working now

Anonymous
Not applicable

I have the same issue (4.0.9 is installed). I installed PBI Desktop on the gateway server and connected to the same Postgres server without issue (with the same user)

@Anonymous can you try installing precisely version 4.0.10.0 and tell me if it solves the problem?

Anonymous
Not applicable

@AGo I tried v4.0.10 already (the git tag/package does not specify another level of versioning, so I'm not sure if that is actually the *exact* version to which you refer) and it was the same error

Ok, thanks for your information, I hope someone from Microsoft can help us.

v-lionel-msft
Community Support
Community Support

Hi @AGo ,

 

"The installed database provider 'Npgsql' targets an incompatible .NET Framework. Please install Npgsql version 4.0.10.0 or earlier."

Please install Npgsql version 4.0.10.0 or earlier.

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

That's what I did: installed Npgsql version is 4.1.3

Hi @AGo ,

 

Please create support ticket .

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

It's now working with npgsql (4.0.10 and GAC) downgrade, hope it will be fixed soon with a full implementation of the ADO .NET data provider in the gateway.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors