Vote count:
0
I'm building a program that communicates with a few external devices.
Some devices use a couple National Instrument dlls that compile and work with NET 4.5 but is angry if I try in NET 4.0. (relay board and TEC Controller)
A spectrometer from Ocean Optics uses NETOmniDriver.dll works in NET 4.0 is angry if I try in NET 4.5.(HR2000+)
At this point I have two different programs to test the devices. One compiles as 4.5 and communicates successfully-ish with the serial devices, one compiles as 4.0 and communicates very well with the spectrometer. This is not a working solution for a final product, I need all devices to communicate with one program.
I would think loading a 4.0 DLL on 4.5 should just work, but it throws a run time "A procedure imported by 'NETOmniDriver.dll' could not be loaded". I'm not sure how to find any more details about which procedure or why it didn't work.
I've tried putting this in my App.config based on some other reading/forums but it doesn't seem to do anything
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
My other idea at this point is try to find some older NI dlls that work with 4.0, but in my mind this is not ideal.
Aucun commentaire:
Enregistrer un commentaire