Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6796029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:25:04+00:00 2026-05-26T18:25:04+00:00

First off, I’m using Visual Studio 2010, Measurement Studio 2010 plugin , C# and

  • 0

First off, I’m using Visual Studio 2010, Measurement Studio 2010 plugin, C# and .NET 4.0.

My application receives data from a USB device and graphs the data using a WaveformPlot() [which is a part of Measurement Studio]. I’m able to run the application fine in debug and release modes and even run it fine directly using the EXE file in the bin folders, on the development computer.

However, I am simply unable to run it in a different computer. I’m using ClickOnce to create an install file and folders, and I copy the publish folder from my development computer to the client computer. I then run the install file, ClickOnce downloads .NET (if it’s not already installed) and then opens the application. The application shows my initial dialog asking me to choose a COM port from the many available. Once I do this, my code goes through the InitializeComponent() after which the main form is supposed to show up.

The main form doesn’t open up after the initial box. Using Debug.WriteLine statements, I’ve been able to narrow it down to

this.waveformPlot = new NationalInstruments.UI.WaveformPlot();

It crashes here. It doesn’t show me any error message or anything. It works fine on my development computer, just not on other computers. I included the National Instruments DLL files and other National Instruments components are initialized fine. It’s just this one that doesn’t. The application shows up in the Windows Task Manager for a while and then just vanishes after like 10 seconds.

What should I do?

Update 1

After reading another unrelated question on Stack Overflow, I realized that I could put the Application.run and the form1 mainform = new form1() in a try-catch block.

System.TypeInitializationException: The type initializer for ‘NationalInstruments.UI.Internal.WaveformPlotElement’ threw and exception. –> System.IO.FileNotFoundException: Could not load file or assembly ‘NationalInstruments.Common.Native.dll’ or one of its dependencies. The specified module could not be found.

Since I at least know it’s an exception now, I’ll work on it, try to figure out which DLL is missing and why, and update this question.

Update 2

I checked the application files that are in the publish folder, and it does include the ‘NationalInstruments.Common.Native.dll’. I have no idea why it can’t load it.

Update 3

I ran Fusion Log Viewer on the client computer and saw that the NationalInstruments.Common.Native.dll was loaded succesfully. But still, the debug exception message shows up as shown in the OP,

Could not load file or assembly ‘NationalInstruments.Common.Native.dll’ or one of its dependencies”

Screenshot of what the Fuslogvw.exe shows


Fuslog Viewer shows that all the assemblies have been loaded successfully. I checked on the client computer. Although, the National Instruments DLL files have a line which says “GAC lookup unsuccessful” in them while the other assemblies don’t.

DebugViewer displays the exception that I print out using Debug.writeLine. This shows that the NationalInstruments.Common.Native.dll or one of its dependencies could not be loaded.

I am very confused.


I tried adding references to the project, using a decompiler to check references, using other install programs (other than ClickOnce) and none of them seem to be getting me anywhere. 🙁


Update 4

I just found out yesterday that the application was installing and running fine on 64-bit systems. The two computers I tried it on before were 32-bit Windows 7 systems.
I am looking to see if that could help me somehow.
The application was compiled on my 64-bit Windows 7 development laptop. The ‘Platform’ drop down menu in ‘Build’ under project properties shows ‘Active (x86) and I have ‘Any CPU’ as the platform target.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:25:04+00:00Added an answer on May 26, 2026 at 6:25 pm

    After spending lots of time on this issue, I spoke to someone from National Instruments, and he helped me solve the issue I was having. I had previously noticed, by checking the module dependencies of mstudiocommon.2010.msm, that it (mstudiocommon.2010.msm) was looking for the vs100_crt_x86.msm file, but the installer had detected (and added) a vs90_crt_x86.msm (in the ‘Detected Dependencies’ of the installer project). Right-clicking the installer project and adding the VS100 .msm file manually fixed the issue that I was having.

    Below, is a screenshot of the module dependencies that I could see for the mstudiocommon and mstudioui merge modules:
    Screenshot of the module dependencies that I could see for the <code>mstudiocommon</code> and <code>mstudioui</code> merge modules.

    Although, I didn’t quite understand why Visual Studio was detecting VS90 instead of VS100, I am happy that I finally fixed this problem, and I’ll leave this for another day.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First off, the mousewheel event is not listed in Visual Studio 2008's events pane
First off, I am using Windows XP. I have multiple hard drives and it
First off: I'm using a rather obscure implementation of javascript embedded as a scripting
First off, let me start off that I am not a .net developer. The
First off, this question is ripped out from this question. I did it because
First off, please forgive the stupidness of this question but Im not from a
First off, I am currently using JQuery so JQuery solutions viable. I want to
First off - I'm not using MapKit. I'm using my own controls for something
First off, I'm using an older version of Restlet (1.1). Secondly, I'm not sure
First off--thanks for having a look. MY QUESTION In a .NET web app, is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.