Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connection to power bi #2701

Closed
scobbyy2k3 opened this issue Oct 20, 2019 · 12 comments
Closed

connection to power bi #2701

scobbyy2k3 opened this issue Oct 20, 2019 · 12 comments

Comments

@scobbyy2k3
Copy link

I get this message each time i try to connect to postgres to power bi, how do i solve it.

Thanks

Details: "An error happened while reading data from the provider: 'Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.'"

Before submitting

This repo is for Npgsql ADO.NET issues only. Entity Framework issues belong in Npgsql.EntityFrameworkCore.PostgreSQL for EF Core, or EntityFramework6.Npgsql for EF 6.x.

Steps to reproduce

Ideally include a complete code listing that we can run to reproduce the issue.
Alternatively, you can provide a project/solution that we can run.

The issue

Describe what is not working as expected.

If you are seeing an exception, include the full exceptions details (message and stack trace).

Exception message:
Stack trace:

Further technical details

Npgsql version:
PostgreSQL version:
Operating system:

Other details about my project setup:

@suttontools
Copy link

Same/Similar 'Unable to connect' pop up window here:
The application is Power BI Desktop. Npgsql was installed using the *.msi installer: https://github.com/npgsql/npgsql/releases/download/v4.1.1/Npgsql-4.1.1.msi

DB is on AWS

@scobbyy2k3
Copy link
Author

scobbyy2k3 commented Oct 21, 2019 via email

@kristofTGITM
Copy link

kristofTGITM commented Oct 23, 2019

same issue, worked with 4.0.10. But no longer with 4.1. Uninstalled, reinstalled 4.0.10. works again.
FYI: tested on multiple computers, multiple rights (local admin vs normal user) multiple PBI installations (via MSI or via Dekstop App) all failed. roll back did the trick for now.
EDIT: No tableau installed.

@dford07
Copy link

dford07 commented Oct 29, 2019

might not be relevant to you but i had the same problem because i had Tableau installed and it was hijacking the postgres odbc driver..
i nuked Tableau but it didnt clean up the registry.

in the registry you want
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTC\XADLL\pgxalib.dll
to point to c:\WINDOWS\system32\pgxalib.dll

you may need to delete that key in the registry and reinstall the postgres ODBC driver..

worth a shot for you

@scobbyy2k3
Copy link
Author

I also have tableau installed .. that might be the problem . How do I get into the registry to have it fixed ?

@dford07
Copy link

dford07 commented Oct 29, 2019

  1. run -> regedit
  2. delete the following key Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTC\XADLL\pgxalib.dll
  3. install the postgres ODBC driver
  4. connect with powerbi

That worked for me

@scobbyy2k3
Copy link
Author

Am I deleting the whole path from hkey or I have to go into the path until
I get to xadll .

@dford07
Copy link

dford07 commented Oct 29, 2019

go into that registry path, delete the entry for pgxalib.dll
then reinstall the postgres odbc driver

@josearacil
Copy link

same issue, worked with 4.0.10. But no longer with 4.1. Uninstalled, reinstalled 4.0.10. works again.

Going back to 4.0.10 works fine for me as well.

@muthugit
Copy link

muthugit commented Nov 7, 2019

Yes it works with Ngpsql 4.0.10 version
https://github.com/npgsql/npgsql/releases/tag/v4.0.10

@k1pacho
Copy link

k1pacho commented Nov 12, 2019

works with Ngpsql 4.0.10 (GAC), 4.1 failed,
Power BI Version: 2.74.5619.862 64-bit (desktop, Oct2019)
PostgreSQL 9.6
no Tableau

@roji
Copy link
Member

roji commented May 13, 2020

Duplicate of #2677

@roji roji marked this as a duplicate of #2677 May 13, 2020
@roji roji closed this as completed May 13, 2020
@roji roji added the duplicate label May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants