Quantcast
Channel: Measurement Studio for .NET Languages topics
Viewing all articles
Browse latest Browse all 1999

TDMS Error - "Type initializer for 'NationalInstruments.Tdms.Internal.e' threw an exception"

$
0
0

Hello all,

 

I've been fighting with Measurement Studio to deploy to a secondary laptop.  It's a simple datalogging application, written in C#, that takes in data from an NI DAQ box and graphs it and logs it to a TDMS file.

 

It's working great on my development computer (measurement studio installed), but when I try to run it on my other laptop (measurement studio not installed), it spits out this exception:

System.TypeInitializationException: The type initializer for 'NationalInstruments.Tdms.Internal.e' threw an exception. ---> System.EntryPointNotFoundException: Unable to find an entry point named 'TDMS_GetLibraryVersion' in DLL 'cvitdms.dll'.
at NationalInstruments.Tdms.Internal.e.TDMS_GetLibraryVersion(UInt32& A_0, UInt32& A_1, UInt32& A_2, UInt32& A_3)
at NationalInstruments.Tdms.Internal.e.a()
at NationalInstruments.Tdms.Internal.e..cctor()
--- End of inner exception stack trace ---
at NationalInstruments.Tdms.Internal.e.TDMS_CreateFileEx(String A_0, TdmsFileFormat A_1, TdmsByteOrder A_2, UInt32 A_3, String A_4, String A_5, String A_6, String A_7, i& A_8)
at NationalInstruments.Tdms.Internal.g.a(String A_0, TdmsFileOptions A_1, String A_2, String A_3, String A_4, String A_5)
at NationalInstruments.Tdms.TdmsFile.a(TdmsFileOptions A_0)
at NationalInstruments.Tdms.TdmsFile..ctor(String path, TdmsFileOptions fileOptions)
at CA02_DAQ_Program.Form1..ctor() in t:\JKelly\CA02 DAQ\CA02 DAQ Program\CA02 DAQ Program\Form1.cs:line 78
at CA02_DAQ_Program.Program.Main() in t:\JKelly\CA02 DAQ\CA02 DAQ Program\CA02 DAQ Program\Program.cs:line 23

I'm creating a few AIVoltageTasks inside the code as well.  When I comment out all of the TDMS code (creating the file, writing to it, etc.), everything works great.  I've tried using the Measurement Studio Installer Builder, but that didn't seem to work either.  I've looked into the merge modules needed, and I tried copying them into the client's laptop's directories, but that didn't work either.

 

What is the proper way to deploy a Measurement Studio application to a laptop that doesn't have it installed?

 

Thanks,

Joe

 


Viewing all articles
Browse latest Browse all 1999

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>