License File Not Updated Correctly When Using Measurement Studio .NET Controls in a Managed Visual C++ Application with Microsoft Visual Studio 2005 Primary Software: Measurement Studio>>.NET SupportPrimary Software Version: 8.0 Primary Software Fixed Version: 8.0 Secondary Software: N/A
Problem: I am using the Measurement Studio .NET user interface controls in a managed Visual C++ Windows Forms application. When I drop the control onto the form, Visual Studio 2005 automatically adds the license file, .licx file, and the assembly references to the project. When I try to use the Refresh License File option from the Measurement Studio menu item, the .licx file looses all of its license strings. I have Measurement Studio 8.0.1 or higher. How do I correct this?Solution: When you drop a Measurement Studio .NET UI control on a form in a project that was created using the Visual Studio C++/CLR project wizard, Visual Studio 2005 adds the assembly references to the National Instruments assemblies in the global assembly cache (GAC) instead of from the ..\MeasurementStudioVS2005\DotNET\Assemblies\Current folder. You can view this by selecting the project properties, expanding the Common Properties item, and selecting References. For example, the relative paths of the National Instruments assemblies when added by Visual Studio 2005 will be something like ..\..\..\WINDOWS\assembly\GAC_MSIL\NationalInstruments.Common\8.0.20.270__4544464cdeaab541\NationalInstruments.Common.dll instead of ..\..\..\Program Files\National Instruments\MeasurementStudioVS2005\DotNET\Assemblies\Current\NationalInstruments.Common.dll. To ensure that the assemblies are referenced from the correct location, remove the National Instruments assembly references that were added by default by Visual Studio 2005 and re-add them by going to the Measurement Studio menu item, selecting View .NET Class Library Wizard and selecting the required Measurement Studio .NET assemblies. Now if you select the Measurement Studio menu option to refresh the license file, the .licx file will be updated correctly.This problem does not occur in Visual Studio .NET 2003. Only Measurement Studio 8.0.1 or higher provides full integration support for Visual Studio 2005. Related Links: Attachments:
Report Date: 05/13/2006 Last Updated: 04/10/2007 Document ID: 3XCFNU5B |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
