Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Compile error LC : error LC0000: 'Could not load file or assembly

Were you running VS2005 as Administrator or with UAC disabled?
0 Kudos
Message 11 of 42
(6,251 Views)
Yes, I'm using administrator a/c in VS2005. What's UAC ?
0 Kudos
Message 12 of 42
(6,247 Views)
 
You said you are running under an Administrator account. Have you tried actually right-clicking on the Visual Studio 2005 shortcut and choosing Run as adminstrator?
 
On my Vista 64-bit machine, if I don't run VS2005 as Administrator, I see the same error (exited with code -1) trying to execute those pre-build and post build steps.
 
What is the full error you get when you run ldr64 from the command prompt?
0 Kudos
Message 13 of 42
(6,225 Views)

Hi drohacek,

Greatly appreciated your help. Yes, you're right. It works now. As you said, I used the Administrator a/c but the VS2005 is not running as administrator. After I changed it to "Run as administrator", it works !!

Thank you vvvvvvvvvvvvvvvvvvvvvvvvvery much. I've spent quite some time on it and the problem is solved now !! 🙂

Michael

0 Kudos
Message 14 of 42
(6,215 Views)

Glad I could help - the problem looked familiar :).

- David

0 Kudos
Message 15 of 42
(6,203 Views)

Hi Drohacek,

 

I had a problem with Measurement Studio v 8.5 for visual studio 2008 on Vista 64. From the visual basic project, I added the graph xy and tried to run for test. It always gives error as below:

 

Additional information: An error occurred creating the form. See Exception.InnerException for details.  The error is: Could not load file or assembly 'NationalInstruments.UI, Version=8.5.35.220, Culture=neutral, PublicKeyToken=18cbae0f9955702a' or one of its dependencies. The system cannot find the file specified.

 

I have another vista 32 work fine.

 

Thanks for your help.

Tu

 

0 Kudos
Message 16 of 42
(5,780 Views)

Hello Tu,

 

There are a couple minor changes that need to be made for your project to build on Vista 64.  See the Measurement Studio Help topic "Using Measurement Studio on 64-Bit Operating Systems" for more information.  I as well use a 64 bit Vista machine, and am confident that this topic will take care of the error you're seeing.  Let us know if this does not resolve it for you!

 

NickB

National Instruments 
0 Kudos
Message 17 of 42
(5,773 Views)

Hello Nickb,

 

Thanks for your reply. I could not find topic on my help document. However, I followed the guide from here: http://digital.ni.com/public.nsf/allkb/1580EBFBE2BC22A7862571BD0059692D. I set the short cut of VS run as Administrators but it still not work. The last hope that I need to turn off UAC to see it work or not.

 

When I tried to set target CPU as X86, then it works OK. I think I still missing some thing to get the correct setting for VS 2008.

 

Hope you can help me out.

 

Thanks,

 

Tu

0 Kudos
Message 18 of 42
(5,766 Views)

Hello Tu,

 

You seem to have come across the answer yourself, but here is the text of that help document:

 

Measurement Studio class libraries are designed to work on 64-bit operating systems. However, Measurement Studio class libraries cannot be used in 64-bit applications. To use Measurement Studio class libraries on a 64-bit operating system, you must configure the projects that use the class libraries to build 32-bit applications or libraries. The following sections describe how to set the platform target for your project to ensure that the project builds a 32-bit application or library.

 

 

Setting the Platform Target in your Visual Basic .NET project

Complete the following steps if you create a Visual Basic .NET project without using a Measurement Studio project template:

  1. In Visual Studio, select the project in the Solution Explorer.
  2. Right-click on the project and select Properties to open the project property pages.
  3. Click the Compile tab in the project property page.
  4. Change the Configuration property to All Configurations.
  5. Select Advanced Compile Options to launch the Advanced Compiler Settings dialog box.
  6. In the Compilation Constants section of the Advanced Compiler Settings dialog, change Target CPU to x86.
  7. Click OK.
  8. Select File»Save Selected Items to save the changes.
Note   If you created a Visual Basic .NET project using a Measurement Studio project template, then the platform target in your project is already set to x86.

 Changing the target CPU should be all you need to do in this case.  Let us know if you find otherwise

 

NickB

National Instruments 

0 Kudos
Message 19 of 42
(5,759 Views)
Yes, that's a bit disappointed as the NI MS cannot run 64-application. I need to write an application that need 64-bit features, like reserving memory over 2GB limit, it is unable to do so in one single program. Have to separate two processes to do it !!! Any idea when will there be any updates on that ?
0 Kudos
Message 20 of 42
(5,751 Views)