Error Connecting MySQl in Vb.net Add-in

Error Connecting MySQl in Vb.net Add-in

BM_Ashraf
Advocate Advocate
348 Views
2 Replies
Message 1 of 3

Error Connecting MySQl in Vb.net Add-in

BM_Ashraf
Advocate
Advocate

Hi,

I'm building an Add-in for Inventor. One of the Functions is really simple just to connect to MySQl and read some data.

I have done that before using VB.Net Application. Now i tried to do the same Connection from the New Add-in (.dll) I get an Error and can not open the Connection

 

This is the Error message that i get from the Add-in (.Dll)
Closed.PNG

 

The same test on a Windows form Application (outside of Inventor)

open.PNG

 

I think the Problem is related to Inventor or how the Add-in tries to establish the Connection.

Does anyone have any idea of how to get it working?

If this solved your problem, or answered your question, please click ACCEPT SOLUTION.

Blue Mech

Add-ins for Inventor!

0 Likes
Accepted solutions (1)
349 Views
2 Replies
Replies (2)
Message 2 of 3

JelteDeJong
Mentor
Mentor
Accepted solution

I have no experience with MySql and addins but here are some thoughts.

  • I assume you have checked the connection string?
  • the addin runs in the process of Inventor. Have you tried to start the SQL connection on a different thread?
    • Running codeonanother thread could in it self be aproblem for Inventor. So if it doesn't solve your problem stay away from it.
  • Inventor use in the background SQLite. Maybe that is an issue. Are you bound to MySql?

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

BM_Ashraf
Advocate
Advocate

Hi,

Thanks alot for your Reply, I really appreciate your work I'm a great fan of your work !

 

Yeah, the Connection string is working fine.

Yeah, i had to cut this part of the Process to be done outside of Inventor and it's working great.

Thanks again for your help !

If this solved your problem, or answered your question, please click ACCEPT SOLUTION.

Blue Mech

Add-ins for Inventor!

0 Likes