Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

NullReferenceException at NationalInstruments.Restricted.LicenseBase.a

Hi!

 

I am using VS2005 SP2 with Measurement Studio 8.1.1.377 Standard. In my application, i make use of the ScatterGraph.

During the last few years I successfully generated versions of that program running without errors.

Now I have the problem that I can successfully generate an .exe and setup project and also installing the program works, but when starting up the application on a test PC the following exception pops up:

 

MyApp.exe Error: 0 : Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.   <== This is the localized NullReferenceException.Message
   bei NationalInstruments.Restricted.LicenseBase.a(Type A_0, Object A_1, String A_2)
   bei NationalInstruments.Restricted.LicenseBase.RunTimeCheck(LicenseContext context, Type type, Object instance)
   bei NationalInstruments.Restricted.LicenseProviderBase.GetLicense(LicenseContext context, Type type, Object instance, Boolean allowExceptions)
   bei System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey)
   bei System.ComponentModel.LicenseManager.ValidateInternal(Type type, Object instance, Boolean allowExceptions, License& license)
   bei System.ComponentModel.LicenseManager.Validate(Type type, Object instance)
   bei NationalInstruments.UI.WindowsForms.ScatterGraph..ctor()
   bei MyApp.FormDataGraph.InitializeComponent()
   bei MyApp.FormDataGraph..ctor()
   bei MyApp.FormMain..ctor()
   bei MyApp.Program.Main()

 

The test and developer have identical .NET framework installations. There is also no other installation like CVI on the test PC.

 

 

I've already uninstalled the CVI IDE and reinstalled the Measurement Studio, switched back to an older project version, tried "Add/Remove .NET class libraries" and "Refresh license file". When choosing "Measurment Studion - Licenses" the licenses are shown as valid.

 

I have noticed that warnings are being generated as the Measuement Studio merge modules require an non-existing, old version of ATL and CRT modules of version 8.0.50727.42. I am not sure if this is the cause of above exception.

 

Did anybody encounter that issue already? Any ideas?

 

Christoph

0 Kudos
Message 1 of 5
(4,261 Views)

Greetings,

 

Just to narrow things down a little, can you provide a little more information about the deployment machine? What OS is it?

 

Thanks,

James Duvall

Product Support Engineer
National Instruments
0 Kudos
Message 2 of 5
(4,251 Views)

Hi,

 

the developer and the test machines are both running Windows XP Professional 32Bit with SP3 on an Intel Core2 Duo CPU, havong 2GB RAM.

 

Thanks,

Christoph

0 Kudos
Message 3 of 5
(4,249 Views)

Hello,

 

I forgot to mention that each time I'm opening the VS project a window appears asking me to confirm to "Update Project References" as "These projects contain references to old versions of NI assemblies. There are newer versions of these assemblies present on the system." although I confirmed that a dozens times.

I could not find those assemblies having a different assembly version anyway.

 

Greetings, Christoph

 

0 Kudos
Message 4 of 5
(4,234 Views)

Hi!

 

I am also using VS2005 SP2 with Measurement Studio 8.1.20.472 Standard. In my application, i make use of the LED.

When I modify the project, I always copy MyApp.exe to user's PC and the application runing without errors.

I upgrade NI DAQmx last week, I also copy MyApp.exe to user's PC, but the application will show the error:


   NationalInstruments.Restricted.LicenseBase.a(Type A_0, Object A_1, String A_2)

 

I check my version, I found NationalInstruments.Common.dll is upgrade to 9.0.20.610.

I update my reference in my project, and copy MyApp.exe & NationalInstruments.Common.dll to user's PC, but the application keep the error.

If remove and re-setup MyApp, the application will run without errors. I don't think the method is good!

How could I do ??

 

Thanks,

 

Dennis

 

0 Kudos
Message 5 of 5
(4,196 Views)