Inventor 2025 issue with oledb

Inventor 2025 issue with oledb

infoPSHCX
Explorer Explorer
161 Views
2 Replies
Message 1 of 3

Inventor 2025 issue with oledb

infoPSHCX
Explorer
Explorer

Hello everyone,

I developed in Visual Studio 2022 (community version) an addin for Inventor,
it connects via oledb to an Access database.
It works perfectly up to version 2024.

In inventor 2025 the code is compiled without errors but at runtime raise the error:

System.IO.FileNotFoundException: 'Could not load file or assembly 'System.Data.OleDb, Version=9.0.0.3,
Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.

The NuGet package System.Data.OleDb is installed
The reference to System.Data.OleDb is checked

I manually copied the System.Data.OleDb file into the compilation destination folder but
at runtime other errors are generated for missing dlls.

The problem occurs both using the procedure recommended by Jelte de Jong, and using the template provided by Autodesk.

Do you have any suggestions for me?
Thanks in advance.

0 Likes
162 Views
2 Replies
Replies (2)
Message 2 of 3

JelteDeJong
Mentor
Mentor

I have seen this kind of issue. I did have some other packages loaded, version 9.*.*. In my case it was solved by downgrading the package to 8.*.*.

Maybe you should try downgrading to version 8.0.1

JelteDeJong_0-1743624221088.png

 

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

0 Likes
Message 3 of 3

infoPSHCX
Explorer
Explorer

I tried the solution you proposed, both with OleDb 8.0.1 and with 8.0.0.

It doesn't work in both cases.

 

infoPSHCX_0-1743758697872.png  

infoPSHCX_4-1743759085212.png

 

If I create a new Windows form project the OleDb connection
works correctly.

infoPSHCX_2-1743758760030.png

Thanks in advance for your help.

 

 

0 Likes