Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem Deploying App

I'm having a problem deploying an app that uses NationalInstruments.UI.WindowsForms.dll & NationalInstruments.UI.dll.

The deployed app throws an IO exception saying that the files above files can't be found. The app also uses the NI488.dll & NI.common.dll but doesn't have a problem finding these two. All four dll are included in the deployed project and are in the same dir as the app. I had to install VS and recompile the app to get it working but I can't do that on every machine that the app is going to run on. How do I fix this? Thanks

JMD
0 Kudos
Message 1 of 4
(3,975 Views)
What version of Measurement Studio are you using? 7.0 or 7.1? If it's 7.1, are you using a 3D style? What is the type of the .NET exception that is thrown? FileNotFoundException? What is the exact message of the exception?

- Elton
0 Kudos
Message 2 of 4
(3,974 Views)
I'm using MS 7.0.
It's a FileNotFoundException exception.

"NI.UI.Windows.dll or one of it's dependencies can't be found" is the error when it asks if I want to debug the program.

JMD
0 Kudos
Message 3 of 4
(3,974 Views)
Hmm ... this is strange. So just to confirm, your application is using NationalInstruments.Common.dll, NationalInstruments.UI.dll, and NationalInstruments.UI.WindowsForms.dll, and they're all in the application directory, right? Are any of these assemblies also in the GAC? If so, which ones? What are the versions of the assemblies in the application directory? If they're also in the GAC, what are the versions in the GAC? Are you running the application from a directory on your machine or from a network share?

I suggest using the .NET Framework SDK assembly binding log viewer (Fuslogvw.exe) application to help debug this. For more information on Fuslogvw.exe, see:



Also, you could download Filemon, set the include filter to NationalInstruments.*, run your application, then look at the log to see where the application is looking for the dependent assembly. What do you find from taking logs with these two tools?

- Elton
0 Kudos
Message 4 of 4
(3,975 Views)