04-19-2011 01:46 PM
I am getting the following error:
Could not load file or assemble 'NationalInstruments.UI.Styles3D.dll' or one of its dependencies.
In my development machine, programs runs ok. W&, VS2010 and MS 2010.
I get the error in the target machine, WXP, service pack 2.
The foilder containing the executable has the following files:
NationalInstruments.Common.dll (version 18.104.22.1682)
NationalInstruments.UI.dll (version 22.214.171.1242)
NationalInstruments.UI.Design.dll (version 126.96.36.1992)
NationalInstruments.UI.Styles3D.dll (version 188.8.131.522)
NationalInstruments.UI.WindowsFroms.dll (version 184.108.40.2062)
NationalInstruments.VisaNS.dll (version 220.127.116.11)
The programs was running ok, I just added a new label to the application, installed it again and then the error comes.
Solved! Go to Solution.
04-20-2011 06:04 PM
Did you include the DLLs that are in the programs folder with the original installer, or did you just copy them over? If you included them, did you include them individually or did you use the merge modules?
I would try adding the appropriate merge modules to the installer, re-install, and see if you still get the error. There is a Measurement Studio help topic called Measurement Studio .NET Merge Modules that can help you determine which merge modules you need to add. There is also a Measurement Studio help topic called How to: Add Merge Modules to a Deployment Project if you need help adding them.
Let me know what you find.
10-17-2011 10:28 AM
I ran into the same issue and discovered that the NationalInstruments.UI.Styles3D.dll depends on the Visual C++ 2010 Runtime which is installed with Visual Studio. You can download the runtime redistributable installer to deploy on the target machines. It is available here: http://www.microsoft.com/download/en/details.aspx?