01-17-2007 04:30 PM
01-18-2007 05:21 PM
Hi Michael,
It looks like you are including quite a few msm files that are probably unnecessary.
If you are not using DataSocket, you can exclude all of the NI.Net msm files.
Also, you shouldn't need CWUI_OCX.msm. What results do you see if you only include UI msm files?
Don't worry about WindowsForms.lic - it is in embedded
into the executable when you build it.
01-18-2007 06:27 PM
01-19-2007 05:31 PM
01-23-2007 05:58 PM
I figured out a way to get the installation to work. I had to rely upon "XCOPY installation" (into the application directory) for some of the .NET assemblies rather than rely upon the NI merge modules.
The Merge Modules I did keep are:
MStudioCommon.2005.msm
MStudioDesign.2005.msm
MStudioUI.2005.msm
MStudioUIWinforms.2005.msm
niMetaUtils.msm
NIMesaDLL.msm
In addition, I kept a lot of the Microsoft merge modules I listed previously.
The key was to install the following .NET assemblies directly into the application's directory:
mscorlib.ni.dll
msvcm80.ni.dll
System.Configuration.ni.dll
System.Drawing.ni.dll
System.ni.dll
System.Web.ni.dll
System.Windows.Forms.ni.dll
System.Xml.ni.dll
02-19-2007 07:57 AM
Hi,
I am having the same problem.
I am trying to publish my application so the users can run it from the network.
When I try to run the application, the following error pops up...
"Unable to install or run the application. The application requieres thst assembly NationalInstruments.Common Version 8.0.20.334 be installed in the Global Assembly Cache (GAC) first."
Can anyone help me solve this problem?
Regards AJ.
02-20-2007 09:00 AM
C:\WINDOWS\assembly on your development machine
). This can be accomplished in two ways:C:\WINDOWS\assembly
. Windows automatically takes care of registering it with the GAC.GACUtil.exe
gacutil /i sample.dll
/i
is to install the assembly into the GAC/u
is to uninstall the assembly from the GAC02-20-2007 12:44 PM
02-26-2007 03:16 PM
Hi James,
I need your help once again... PLease look at the error bellow.
/*************************
System.IO.FileNotFoundException was unhandled
Message="Could not load file or assembly 'NationalInstruments.Common, Version=8.0.11.274, Culture=neutral, PublicKeyToken=4544464cdeaab541' or one of its dependencies. The system cannot find the file specified."
Source="VisaicNS"
FileName="NationalInstruments.Common, Version=8.0.11.274, Culture=neutral, PublicKeyToken=4544464cdeaab541"
FusionLog="=== Pre-bind state information ===\r\nLOG: User = US\\08769\r\nLOG: DisplayName = NationalInstruments.Common, Version=8.0.11.274, Culture=neutral, PublicKeyToken=4544464cdeaab541\n (Fully-specified)\r\nLOG: Appbase = file:///C:/Data/08769/Visual Studio 2005/Projects/MAURICIO/NationalInstruments/DotNET/Examples/Visa/VisaicNS/CS/bin/Debug/\r\nLOG: Initial PrivatePath = NULL\r\nCalling assembly : NationalInstruments.VisaNS, Version=8.0.11.190, Culture=neutral, PublicKeyToken=4544464cdeaab541.\r\n===\r\nLOG: This bind starts in default load context.\r\nLOG: No application configuration file found.\r\nLOG: Using machine configuration file from C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\config\\machine.config.\r\nLOG: Publisher policy file is found at C:\\WINDOWS\\assembly\\GAC_MSIL\\policy.8.0.NationalInstruments.Common\\8.0.20.274__4544464cdeaab541\\NationalInstruments.Common.config.\r\nLOG: Post-policy reference: NationalInstruments.Common, Version=8.0.11.274, Culture=neutral, PublicKeyToken=4544464cdeaab541\r\nLOG: Attempting download of new URL file:///C:/Data/08769/Visual Studio 2005/Projects/MAURICIO/NationalInstruments/DotNET/Examples/Visa/VisaicNS/CS/bin/Debug/NationalInstruments.Common.DLL.\r\nLOG: Attempting download of new URL file:///C:/Data/08769/Visual Studio 2005/Projects/MAURICIO/NationalInstruments/DotNET/Examples/Visa/VisaicNS/CS/bin/Debug/NationalInstruments.Common/NationalInstruments.Common.DLL.\r\nLOG: Attempting download of new URL file:///C:/Data/08769/Visual Studio 2005/Projects/MAURICIO/NationalInstruments/DotNET/Examples/Visa/VisaicNS/CS/bin/Debug/NationalInstruments.Common.EXE.\r\nLOG: Attempting download of new URL file:///C:/Data/08769/Visual Studio 2005/Projects/MAURICIO/NationalInstruments/DotNET/Examples/Visa/VisaicNS/CS/bin/Debug/NationalInstruments.Common/NationalInstruments.Common.EXE.\r\n"
StackTrace:
at NationalInstruments.Examples.VisaicNS.MainForm.MainForm_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(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.WmShowWindow(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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
at System.Windows.Forms.Control.set_Visible(Boolean value)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at NationalInstruments.Examples.VisaicNS.MainForm.Main() in C:\Data\08769\Visual Studio 2005\Projects\MAURICIO\NationalInstruments\DotNET\Examples\Visa\VisaicNS\CS\MainForm.cs:line 460
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
************************/
I try reinstalling NI-VISA 4.0, and after that a whole lot of errors started hapening.
Please help, all my programs are stucked, and I can not do any work.
Thank you in advance.
02-27-2007 09:21 AM