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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
IgorAtRydlab
Regular Visitor

a problem connecting wiht postgresql database

When creating a connection to a PostgreSQL DB always receive the following:

 

"Подробности: "При чтении данных от поставщика произошла ошибка: 'Не удалось загрузить файл или сборку "System.Runtime.CompilerServices.Unsafe, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" либо одну из их зависимостей. Не удается найти указанный файл.'"

 

which means that it cannot find "System.Runtime.CompilerServices.Unsafe, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"

 

it happens after inserting data on connection, when all connection data is provided and it tries to get data from DB, as I see it.

 

What should I do to fix this?

 

Скриншот 2018-06-04 12.13.13.png

 

1 ACCEPTED SOLUTION

it is IgorAtRydlab ...

 

moved forward from that problem by removing latest npgsql 4.* version and installing previous 3.*.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @IgorAtRydlab,

 

I think this issue more related to your environment and libraries, please check below links or try to use scan command to fix environment.

 

Sfc Command (System File Checker)

Microsoft .NET Framework Repair Tool

 

Regards,
Xiaoxin Sheng

Same issue, but on a fresh installation, everything looks good except for connecting to postgres on powerbi

I have this same issue.

 

Clean install of Windows 10 Pro, Power Bi Desktop (May 18), Npgsql 4.0.0.

 

I'm attempting to connect to Panoply.io (Postgres).

 

Ran the .NET repair tool and SFC, no apparent issues.

it is IgorAtRydlab ...

 

moved forward from that problem by removing latest npgsql 4.* version and installing previous 3.*.

Thanks,

 

Also downgraded to Npgsql (3.2.7) and connected successfully.

 

Ian

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.