02-25-2019 10:59 AM
Visual Studio 2010 just started hanging badly when I open a project. It was working fine until recently. I am working in Windows 7 and getting the following error from the windows event logs.
Error Message: version == String.Empty Exception: ArgumentException Suggestion: Repair or re-install Measurement Studio. Stack Trace: at NationalInstruments.MeasurementStudio.ParameterCheck.ValidateNotEmpty(String value, String parameterName) at NationalInstruments.MeasurementStudio.Tools.Services.Component..ctor(String name, Guid guid, String version, String description, String installDate, String path) at NationalInstruments.MeasurementStudio.Tools.Services.InstallService.LoadComponents(String componentsKeyName, RegistryKey key) |
Any suggestions as to what could have caused this to start happening?
02-26-2019
09:21 AM
- last edited on
11-20-2024
04:43 PM
by
Content Cleaner
Hi John,
Do you know if anything changed on your project or system that may have caused this error to start occurring? Additionally, do you know what version of Measurement Studio you have installed?
You can try repairing the software by following the instructions here: https://www.ni.com/en/support/documentation/supplemental/18/uninstall-or-repair-national-instruments...
You can also try force reinstalling the software to see if that clears the error as well: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P8U0SAK&l=en-US
Best,
Daniel
02-26-2019 12:06 PM
Hi Daniel,
Nothing in my projects have changed. Systemwise that is a tough call as our IT department is constantly pushing updates. Sometimes we are made aware of the updates and sometimes we aren't.
I am running Measurement Studio 2010 with the extra support for C++.
02-26-2019 06:00 PM
Daniel,
I have tried uninstalling and reinstalling measurement studio 2010. I have tried repairing. Nothing has worked.
02-27-2019 12:41 PM
John,
Can you check to see if there is a value in the Data field of this registry key? HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\Measurement Studio\VS2010\Components\Integration\NationalInstruments.Mea
surementStudio.CodeGeneration
I found a known issue with Measurement Studio and NI-DAQ with .NET 4.0 support that seems to present similar behavior.
Daniel
02-28-2019 06:26 PM
Daniel,
Believe it or not. The registry key that you referred to is not there. In fact, HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\Measurement Studio is not there at all! HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments is there but there is no Measurement Studio branch.
03-01-2019 11:35 AM
John,
My mistake, I think it should actually be in Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\National Instruments\Measurement Studio\VS2010\Components\Integration\NationalInstruments.MeasurementStudio.CodeGeneration. At least, that's where it is on my computer for VS2012. If it's not there, you should be able to find it by just hitting ctrl+F in regedit and searching for "CodeGeneration"
Best,
Daniel
03-04-2019 09:28 AM
Daniel,
I found the key that you were referring to. Funny thing, There is a path listed in that key the path is the following... C:\windows\assembly\NationalInstruments.MeasurementStudio.CodeGeneration.dll
I followed the path and the dll in the path is not at the location pointed to by the path.
03-07-2019 02:05 PM
I got this error today. along with the original error.
Error Message: Could not find a part of the path 'LicenseCache\03072019\__ms03072019.tmp'.
Exception: DirectoryNotFoundException
Information: License deserialization failed because the serialization directory does not exist.