Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Support for VS .NET 2005

I have Measurement studio v7.1(professional) installed on my machine as well as VS .NET 2005 Beta.
The main problem is licensing for "NationalInstruments.Analysis.Professional". Any application that wants to use that assembly, it pops up a message box and says "This program will be automaticaly shut down in 30 seconds".
The user interface objects work almost OK but there are some minor problems. If during design time select the "auto format" for a graph component, there would be an exception:
"See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Reflection.TargetInvocationException: Property accessor 'ContextMenu' on object '__ea63d9aea8a04f6bbe8ad95e3ff915ff' threw the following exception:'Object does not match target type.' ---> System.Reflection.TargetException: Object does not match target type.
at System.Reflection.RuntimeMethodInfo.CheckConsistency(Object target)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component)
--- End of inner exception stack trace ---
at NationalInstruments.Design.ComponentAutoFormat.Format(IComponent component, ICollection associatedComponents, IServiceProvider provider)
at NationalInstruments.Design.UI.ControlAutoFormat.Format(IComponent component, ICollection associatedComponents, IServiceProvider provider)
at NationalInstruments.Design.UI.AutoFormatEditor.OnFormatsSelectedIndexChanged(Object sender, EventArgs e)
at System.Windows.Forms.ListBox.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.ListBox.set_SelectedIndex(Int32 value)
at System.Windows.Forms.ListBox.set_SelectedItem(Object value)
at NationalInstruments.Design.UI.AutoFormatEditor.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.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.42 (beta1.040607-4200)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.40607/mscorlib.dll
----------------------------------------
Microsoft.VSDesigner
Assembly Version: 8.0.1200.0
Win32 Version: 8.0.40607.85 (lab26.040607-8500)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VSDesigner/8.0.1200.0__b03f5f7f11d50a3a/Microsoft.VSDesigner.dll
----------------------------------------
EnvDTE
Assembly Version: 8.0.0.0
Win32 Version: 8.0.40412.00
CodeBase: file:///C:/WINDOWS/assembly/GAC/EnvDTE/8.0.0.0__b03f5f7f11d50a3a/EnvDTE.dll
----------------------------------------
Microsoft.VisualStudio.WizardFramework
Assembly Version: 8.0.1200.0
Win32 Version: 8.0.40607.85 (lab26.040607-8500)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.WizardFramework/8.0.1200.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.WizardFramework.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.42 (beta1.040607-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.3600.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.42 (beta1.040607-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.3600.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.42 (beta1.040607-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.3600.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Microsoft.VisualStudio
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.85 (lab26.040607-8500)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio/2.0.3600.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.dll
----------------------------------------
Microsoft.VisualStudio.Shell
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.85 (lab26.040607-8500)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Shell/2.0.3600.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Shell.dll
----------------------------------------
Microsoft.VisualStudio.Shell.Interop
Assembly Version: 7.1.40304.0
Win32 Version: 7.0.4054
CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.VisualStudio.Shell.Interop/7.1.40304.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Shell.Interop.dll
----------------------------------------
Microsoft.VisualStudio.OLE.Interop
Assembly Version: 7.1.40304.0
Win32 Version: 7.0.4054
CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.VisualStudio.OLE.Interop/7.1.40304.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.OLE.Interop.dll
----------------------------------------
Microsoft.VisualStudio.Shell.Interop.8.0
Assembly Version: 8.0.0.0
Win32 Version: 8.0.40607.85 (lab26.040607-8500)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Shell.Interop.8.0/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Shell.Interop.8.0.dll
----------------------------------------
System.Drawing.Design
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.42 (beta1.040607-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing.Design/2.0.3600.0__b03f5f7f11d50a3a/System.Drawing.Design.dll
----------------------------------------
Microsoft.VisualStudio.Designer.Interfaces
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.85 (lab26.040607-8500)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Designer.Interfaces/2.0.3600.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Designer.Interfaces.dll
----------------------------------------
Accessibility
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.42 (beta1.040607-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.3600.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Microsoft.Build.Conversion
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.85
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.40607/Microsoft.Build.Conversion.dll
----------------------------------------
Microsoft.Build.Engine
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.42
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Build.Engine/2.0.3600.0__b03f5f7f11d50a3a/Microsoft.Build.Engine.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.42 (beta1.040607-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.3600.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.Build.Framework
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.42
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Build.Framework/2.0.3600.0__b03f5f7f11d50a3a/Microsoft.Build.Framework.dll
----------------------------------------
CustomMarshalers
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.42 (beta1.040607-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/CustomMarshalers/2.0.3600.0__b03f5f7f11d50a3a/CustomMarshalers.dll
----------------------------------------
Microsoft.Build.Tasks
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.42
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Build.Tasks/2.0.3600.0__b03f5f7f11d50a3a/Microsoft.Build.Tasks.dll
----------------------------------------
Microsoft.Build.Utilities
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.42
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Build.Utilities/2.0.3600.0__b03f5f7f11d50a3a/Microsoft.Build.Utilities.dll
----------------------------------------
StanPackage
Assembly Version: 0.0.0.0
Win32 Version: 8.0.40607.85 built by: lab26(VSBLD863-dlab)
CodeBase: file:///i:/Program%20Files/Microsoft%20Visual%20Studio%208/Enterprise%20Developer%20Tools/Static%20Analysis%20Tools/stanpackage.dll
----------------------------------------
Microsoft.VisualStudio.QualityTools.TestCaseManagement
Assembly Version: 8.0.1200.0
Win32 Version: 8.0.40607.85
CodeBase: file:///i:/Program%20Files/Microsoft%20Visual%20Studio%208/Common7/IDE/PrivateAssemblies/Microsoft.VisualStudio.QualityTools.TestCaseManagement.dll
----------------------------------------
Microsoft.VisualStudio.QualityTools.Vsip
Assembly Version: 8.0.1200.0
Win32 Version: 8.0.40607.85
CodeBase: file:///i:/Program%20Files/Microsoft%20Visual%20Studio%208/Common7/IDE/PrivateAssemblies/Microsoft.VisualStudio.QualityTools.Vsip.dll
----------------------------------------
Microsoft.VisualStudio.QualityTools.Common
Assembly Version: 8.0.1200.0
Win32 Version: 8.0.40607.85
CodeBase: file:///i:/Program%20Files/Microsoft%20Visual%20Studio%208/Common7/IDE/PrivateAssemblies/Microsoft.VisualStudio.QualityTools.Common.dll
----------------------------------------
Microsoft.VisualStudio.QualityTools.Resources
Assembly Version: 8.0.1200.0
Win32 Version: 8.0.40607.85
CodeBase: file:///i:/Program%20Files/Microsoft%20Visual%20Studio%208/Common7/IDE/PrivateAssemblies/Microsoft.VisualStudio.QualityTools.Resources.dll
----------------------------------------
Microsoft.VisualStudio.QualityTools.CodeCoverage
Assembly Version: 8.0.1200.0
Win32 Version: 8.0.40607.85
CodeBase: file:///i:/Program%20Files/Microsoft%20Visual%20Studio%208/Common7/IDE/PrivateAssemblies/Microsoft.VisualStudio.QualityTools.CodeCoverage.dll
----------------------------------------
Microsoft.VisualStudio.TextManager.Interop
Assembly Version: 7.1.40304.0
Win32 Version: 7.0.4054
CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.VisualStudio.TextManager.Interop/7.1.40304.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.TextManager.Interop.dll
----------------------------------------
System.Design
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.42 (beta1.040607-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Design/2.0.3600.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------
Microsoft.VisualStudio.QualityTools.TMI
Assembly Version: 8.0.1200.0
Win32 Version: 8.0.40607.85
CodeBase: file:///i:/Program%20Files/Microsoft%20Visual%20Studio%208/Common7/IDE/PrivateAssemblies/Microsoft.VisualStudio.QualityTools.TMI.dll
----------------------------------------
System.Data
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.42 (beta1.040607-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.3600.0__b77a5c561934e089/System.Data.dll
----------------------------------------
Microsoft.VisualStudio.Design
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.85 (lab26.040607-8500)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Design/2.0.3600.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Design.dll
----------------------------------------
Microsoft.VisualStudio.Shell.Design
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.85 (lab26.040607-8500)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Shell.Design/2.0.3600.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Shell.Design.dll
----------------------------------------
COM2InteropEmit
Assembly Version: 0.0.0.0
Win32 Version: 2.0.40607.42 (beta1.040607-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.3600.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
VSLangProj
Assembly Version: 7.0.3300.0
Win32 Version: 7.00.9466
CodeBase: file:///C:/WINDOWS/assembly/GAC/VSLangProj/7.0.3300.0__b03f5f7f11d50a3a/VSLangProj.dll
----------------------------------------
Microsoft.VisualStudio.Windows.Forms
Assembly Version: 2.0.3600.0
Win32 Version: 2.0.40607.85 (lab26.040607-8500)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Windows.Forms/2.0.3600.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Windows.Forms.dll
----------------------------------------
Microsoft.VisualStudio.Data.Interop
Assembly Version: 8.0.1200.0
Win32 Version: 8.0.1200.0
CodeBase: file:///i:/Program%20Files/Microsoft%20Visual%20Studio%208/Common7/IDE/Microsoft.VisualStudio.Data.Interop.dll
----------------------------------------
Microsoft.VisualStudio.Editors
Assembly Version: 8.0.1200.0
Win32 Version: 8.0.40607.85 (lab26.040607-8500)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Editors/8.0.1200.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Editors.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.1200.0
Win32 Version: 8.0.40607.42 (beta1.040607-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.1200.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
NationalInstruments.Analysis.Professional
Assembly Version: 7.1.0.306
Win32 Version: 7.1.0.306
CodeBase: file:///C:/WINDOWS/assembly/GAC/NationalInstruments.Analysis.Professional/7.1.0.306__4544464cdeaab541/NationalInstruments.Analysis.Professional.dll
----------------------------------------
NationalInstruments.Common
Assembly Version: 7.1.0.243
Win32 Version: 7.1.0.243
CodeBase: file:///C:/WINDOWS/assembly/GAC/NationalInstruments.Common/7.1.0.243__4544464cdeaab541/NationalInstruments.Common.dll
----------------------------------------
NationalInstruments.UI
Assembly Version: 7.1.0.306
Win32 Version: 7.1.0.306
CodeBase: file:///C:/WINDOWS/assembly/GAC/NationalInstruments.UI/7.1.0.306__4544464cdeaab541/NationalInstruments.UI.dll
----------------------------------------
NationalInstruments.UI.WindowsForms
Assembly Version: 7.1.0.306
Win32 Version: 7.1.0.306
CodeBase: file:///C:/WINDOWS/assembly/GAC/NationalInstruments.UI.WindowsForms/7.1.0.306__4544464cdeaab541/NationalInstruments.UI.WindowsForms.dll
----------------------------------------
NationalInstruments.Design
Assembly Version: 7.1.0.306
Win32 Version: 7.1.0.306
CodeBase: file:///C:/WINDOWS/assembly/GAC/NationalInstruments.Design/7.1.0.306__4544464cdeaab541/NationalInstruments.Design.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:





When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog."
0 Kudos
Message 1 of 7
(7,231 Views)
"I have Measurement studio v7.1(professional) installed on my machine as well as VS .NET 2005 Beta."

Are you trying to use Measurement Studio 7.1 with VS.NET 2005 Beta or do you just have the VS.NET 2005 Beta installed and you're trying to use Measurement Studio 7.1 with VS.NET 2003? Looking at the stack trace, it looks like it's the former. Measurement Studio 7.1 has not been tested for VS.NET 2005 Beta and is not supported for VS.NET 2005 Beta, so there may be some issues with using Measurement Studio 7.1 with VS.NET 2005 Beta.

Having said that, though, the licensing problem is probably due to a missing licenses.licx file or a missing entry in the licenses.licx file. The Measurement Studio VS.NET 2003 integration support manages this for you w
hen you add/remove references to/from the analysis assembly. Please verify that your project has a licenses.licx file and that it contains a line that looks like this:

NationalInstruments.Restricted.AnalysisLicenser, NationalInstruments.Analysis.Professional, Version=7.1.0.306, Culture=neutral, PublicKeyToken=4544464cdeaab541

Unfortunately, the auto format issue is due to a change between VS.NET 2003 and VS.NET 2005 and cannot be addressed until there's a version of Measurement Studio that supports VS.NET 2005. You should not see this issue in VS.NET 2003. Were there any other minor problems with the UI controls other than this?

- Elton
0 Kudos
Message 2 of 7
(7,231 Views)
licenses.licx was correct, but it did not work, it is easy to reproduce that, if you convert one of the examples to VS 2005 (\Program Files\National Instruments\MeasurementStudioVS2003\DotNET\Examples\Analysis\Filtering) you will see the same error message.
0 Kudos
Message 3 of 7
(7,231 Views)
Ok, I was assuming that you were creating a new project. I took a quick look at this and it looks like licensing works with the UI controls but not with analysis. I tried creating an analysis wrapper library in VS.NET 2003 and then calling that from VS.NET 2005 Beta 1 as a workaround, but that didn't work, either.

Unfortunately, we don't have a workaround for this at this time. This will definitely be resolved in a future version of Measurement Studio that supports VS.NET 2005. Just out of curiosity, are you working on a real project in VS.NET 2005 Beta 1 that requires Measurement Studio support or are you just playing around with the beta?

- Elton
0 Kudos
Message 4 of 7
(7,231 Views)
VS .NET 2005 will be released in Q1 2005, so using VS 2005 for the projects that are supposed to be released after Q1 2005 would be OK (VS 2005 much more better that 2003 and the beta version is quite stable). Writing the wrapper library in VS.NET 2003 and then calling that from VS.NET 2005 does not solve the problem, because .NET Framework V2.0 is used to run the "NationalInstruments.Analysis.Professional.dll" and the other Measurement Studio assemblies.
I would appreciate if you can provide a light wrapper for "Analysis.dll", because "NationalInstruments.Analysis.Professional.dll" is simply a .NET wrapper for that dll and some utilty classes.
0 Kudos
Message 5 of 7
(7,231 Views)
Hello Bijan

As you probably already know, there were significant changes introduced in the .NET 2.0 beta frameworks. Because of these changes, there is no guarantee that libraries designed and optimized for use with the 1.1 framework will automatically work with the 2.0 framework. To get an idea of all the changes that were introduced, check out this link that documents these changes. Currently we do not support the 2.0 framework beta since none of our components have been tested on it and optimized for it.The Measurement Studio 7.1 .NET class libraries were tested and designed to be used with Visual Studio .NET 2003 and the .NET 1.1 and
1.1 SP1 frameworks. And even though in most cases, the libraries might work, there are such cases (like the one you came across) where there might be unexpected issues. Our best recommendation for avoiding such cases is to not use the components in unsupported environments.

National Instruments will always continue to provide support for the new technologies that Microsoft releases to the market (in the case of Visual Studio .NET 2005 aka "Whidbey", current best estimates place that around middle of 2005, but no one can really tell for sure yet)

As Whidbey is officially made available in its final form, Measurement Studio will continue to provide libraries that are optimized to work with Visual Studio .NET 2005 and the .NET 2.0 framework.

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 6 of 7
(7,231 Views)
I did not find anything regarding license check in "http://www.gotdotnet.com/team/changeinfo/Backwards1.1to2.0/default.aspx".
0 Kudos
Message 7 of 7
(7,231 Views)