NI Home > Community > NI Discussion Forums

Measurement Studio for .NET Languages

Reply
Member
AlbertJ
Posts: 35
0 Kudos
Accepted Solution

could not load file or assembly 'NationalInstruments.UI.Styles3D.dll'

Hi,

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 9.0.40.362)

NationalInstruments.UI.dll (version 9.0.40.292)

NationalInstruments.UI.Design.dll (version 9.0.40.292)

NationalInstruments.UI.Styles3D.dll (version 9.0.40.292)

NationalInstruments.UI.WindowsFroms.dll (version 9.0.40.292)

NationalInstruments.VisaNS.dll (version 9.0.40.156)

 

The programs was running ok, I just added a new label to the application, installed it again and then the error comes.


PLEASE HELP


Regards,

Alberto J.

Member
Kracken
Posts: 92
0 Kudos

Re: could not load file or assembly 'NationalInstruments.UI.Styles3D.dll'

Hi AlbertJ,

 

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.

 

Regards,

 

Brandon V.

Applications Engineering

National Instruments

www.ni.com/support

Member
JPoore
Posts: 1

Re: could not load file or assembly 'NationalInstruments.UI.Styles3D.dll'

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?id=5555

Member
pwr_paji
Posts: 1
0 Kudos

Re: could not load file or assembly 'NationalInstruments.UI.Styles3D.dll'

Thank you very much JPoore for this information