Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Get FileNotFoundException on NationalInstruments.UI.Styles3D (merge modules included)

I'm creating an installer for a product that I am wanting to deploy, which uses Measurement Studio .NET Windows Forms UI Controls.  Most things are working in the deployed app, except any time I open a form that loads a control with 3D styles (like the tank control, for instance), I get the following error message:
 
System.IO.FileNotFoundException: File or assembly name NationalInstruments.UI.Styles3D, or one of its dependencies, was not found.
File name: "NationalInstruments.UI.Styles3D"
   at NationalInstruments.UI.e.DrawFillArea(ILinearNumericPointer context, LinearNumericPointerStyleDrawArgs args, Double value)
   at NationalInstruments.UI.LinearNumericPointerStyle.Draw(INumericPointer context, NumericPointerStyleDrawArgs args, Double value)
   at UICM.aj.DrawForeground(ComponentDrawArgsInternal args)
   at NationalInstruments.Restricted.ControlElement.a(ComponentDrawArgsInternal , Rectangle , Boolean )
   at NationalInstruments.Restricted.ControlElement.DrawChildren(ComponentDrawArgsInternal args, Rectangle clipRectangle)
   at NationalInstruments.Restricted.ControlElement.a(ComponentDrawArgsInternal , Rectangle , Boolean )
   at NationalInstruments.Restricted.ControlElement.a(ComponentDrawArgsInternal , Rectangle )
   at NationalInstruments.Restricted.ControlElement.Paint(PaintEventArgs e)
   at NationalInstruments.UI.WindowsForms.ControlBase.OnPaint(PaintEventArgs e)
   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
   at System.Windows.Forms.Control.WmPaint(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
 
This looks like the error message in the ever familiar KB article 3C9F0AX0, however this should not be happening since I'm using Measurement Studio 8.0, and I am including the 2 mentioned merge modules.  Actually, the installer program not automatically includes 2 ni versions of the Microsoft files and the 2 actual microsoft merge modules.  I've checked the target machine, and msvcr71.dll and msvcp71.dll are installed in the system32 directory properly and have the correct version numbers.  Note, the 7.0 versions of those files are NOT installed. 
 
Are there any other dependencies for Styles3D that you can think of?  This issue is happening on Windows 2000 with Measurement Studio 8.0.  This configuration is still supported isn't it?
 
Another thing to note is that I'm using Wise for Windows Installer to deploy my product.  So far it's done a better job than Visual Studio usually does at detecting dependencies, but I'm sure it's not perfect.  I also use a config file with my application that forces it to always bind to the .NET Framework 1.1 instead of rolling forward to the .NET Framework 2.0.
 
Please Help!
-Matt
0 Kudos
Message 1 of 3
(4,022 Views)
Well, after looking some more, I don't see NationalInstruments.UI.Styles3D in the GAC.  Maybe that has something to do with the error.  I will look to see if there is anything different I need to do with the merge modules.
 
Thanks,
-Matt
0 Kudos
Message 2 of 3
(4,017 Views)

OK, I solved it myself!

The merge modules were being included, but in WFWI, they are not automatically added to the GAC, so I changed all the Measurement Studio for .NET merge modules to install to the GAC and that fixed the problem.

Hopefully, if anything, this thread will hope someone in my situation who is also using Wise for Windows Installer.

Thanks,

-Matt

0 Kudos
Message 3 of 3
(4,015 Views)