Failed to connect to the database using C # in the NAVISOWORKS API plugin

Failed to connect to the database using C # in the NAVISOWORKS API plugin

1905867998
Participant Participant
238 Views
1 Reply
Message 1 of 2

Failed to connect to the database using C # in the NAVISOWORKS API plugin

1905867998
Participant
Participant

I am using the VS platform, C # language, and NET Framework 4.8 developed a plugin that could have been opened normally in Navisworks software and implemented functions such as querying component information, monitoring source file changes, and automatic updates.


But now I have created a new tab bound to the plugin and bound the 'Connect to Database' method for the buttons on that tab. When I run the program again, the plugin can open normally, but whenever I click the "Connect to Database" button on the tab page, VS automatically redirects me to the "Autodesk. Navisworks. Ai. dii" uncompiled code page, pointing to line 55071 of the debugger Break().

1905867998_1-1741238922523.png

 

1905867998_0-1741238831077.png

 

 

If I continue to run the program, the software will crash on its own and display the following image. Later, I tried to connect to the SQLServer database in the NAVISWORKS plugin, but it automatically redirected to an error line in the uncompiled source code of Navisworks. api.dll, But still unable to connect to the database. May I ask if the Navisworks API does not support connecting to the database simultaneously in the developed plugin?

 

Looking forward to your reply very much!

0 Likes
239 Views
1 Reply
Reply (1)
Message 2 of 2

alexisDVJML
Collaborator
Collaborator

When at this DebugBreak, provided you have compiled with Debug Symbols, you should look at the call stack, it helped me find the issue a few times. 

Main Scientist, Full Stack Developer & When Time Permits Director of IDIGO ► On your marks, Set, Go
0 Likes