Good morning. I'm using LabView 2012 Developer Suite on Win7. I need to interface with a Visual Basic ActiveX dll built on .NET 2.0 framework. I'm using ActiveX functions in LabVIEW. No problems there. When I run the application, I get the error:
Error -2147467259 occurred at Exception occured in Microsoft OLE DB Provider for ODBC Drivers: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified in FibLAST_GetOpID.vi:1->Main.vi
LabVIEW: (Hex 0x80004005) Unspecified error.
NI System Configuration: (Hex 0x80004005) Miscellaneous operation failure.
I can get this to work with VB in VS2010 by modifying the Target framework of the project to ".NET Framework 2.0". I have no idea on how to do this in LabVIEW. Any help would be greatly appreciated.
Additional info: The ActiveX dll runs stored procedures on a Sequel database.
Solved! Go to Solution.
Hm, you are confusing things here. The interface to the DLL is either ActiveX (DLL with ActiveX interface compiled into it) or it is .NET (DLL is called "Assembly" then). It cannot be both the same time.
That being said, if you are really using ActiveX, the .NET version should not change anything, regardless if it is 2.0, 3.0 or whatever. To be more precise: The version of the Common Language Runtime (CLR) is important.
See this KB for more information about CLR versions and LV.
That being said, pls provide source code next time if the problem persists.
Thanks for the reply. As it turns out, I was using the wrong version of the dll. Both dll's had the same file properties (date modified, version number, etc.), but one worked and one didn't. It did pull in as an ActiveX.