Has anyone successfully deployed a Visual Studio 2005 Click Once (or any setup) using Measurement Studio 7.1 controls? We have done the license patch as listed here and the program compiles and runs fine. However, when we try to create a deployment (to a remote client), they are getting one of the following errors when trying to access forms that contain the MS controls:
System.IO.FileLoadException: Could not load file or assembly
'NationalInstruments.Common, Version=7.1.0.243, Culture=neutral,
PublicKeyToken=4544464cdeaab541' or one of its dependencies. The
located assembly's manifest definition does not match the assembly
reference. (Exception from HRESULT: 0x80131040)
File name: 'NationalInstruments.Common, Version=7.1.0.243, Culture=neutral, PublicKeyToken=4544464cdeaab541'
at Inhallation.frmExposure.InitializeComponent()
at Inhallation.frmExposure..ctor()
at Inhallation.frmMain.menuItem1_Click_2(Object sender, EventArgs e)
at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
at System.Windows.Forms.MenuItem.MenuItemData.Execute()
at System.Windows.Forms.Command.Invoke()
at System.Windows.Forms.Command.DispatchID(Int32 id)
at System.Windows.Forms.Control.WmCommand(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
or
************** Exception Text **************
System.IO.FileNotFoundException:
Could not load file or assembly 'NationalInstruments.Common,
Version=7.1.0.243, Culture=neutral, PublicKeyToken=4544464cdeaab541' or
one of its dependencies. The system cannot find the file specified.
File name: 'NationalInstruments.Common, Version=7.1.0.243, Culture=neutral, PublicKeyToken=4544464cdeaab541'
at Inhallation.frmExposure.InitializeComponent()
at Inhallation.frmExposure..ctor()
at Inhallation.frmMain.menuItem1_Click_2(Object sender, EventArgs e)
at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
at System.Windows.Forms.MenuItem.MenuItemData.Execute()
at System.Windows.Forms.Command.Invoke()
at System.Windows.Forms.Command.DispatchID(Int32 id)
at System.Windows.Forms.Control.WmCommand(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
We are trying to include everything under the sun in the install package to make this work. It is correct to assume that this will be loaded on a fresh machine. Any ideas? Thank you!