Failed to connect to the database using C # in the NAVISOWORKS API plugin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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().
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!