NI Home > Community > NI Discussion Forums

NI TestStand

Showing results for 
Search instead for 
Do you mean 
Reply
Member
Water1
Posts: 15
0 Kudos

User-defined error code.[error code:-2147319779]

Hello everyone,

Thank you in advance!

Come out a error dialog when I simple click main sequence .

The content of dialog is that User-defined error code.[error code:-2147319779] .

 

I use two test stations ,and one come out this error ,another one is ok .(with the same test program).

 

 I used TestStand 4.2 and LabView8.6 to run test program.

And I have seted user.ini

Active Participant
James_Grey
Posts: 738
0 Kudos

Re: User-defined error code.[error code:-2147319779]

That error code is COM/ActiveX for "Library not registered". Assuming that by "click main sequence" you mean run your main sequence, then some step or code module is probably calling an ActiveX server that has not been installed. If you can step through your sequence and find out more specifically where the error occurs, it might help you determine what is missing.

 


Active Participant
snowpunter
Posts: 283
0 Kudos

Re: User-defined error code.[error code:-2147319779]

[ Edited ]

We've run into this error occassionally in the past when opening a sequnence file in the OI and now with attempting to deploy the 2010 engine it has become obnoxious. So here's a quick rundown:

 

Old builds: TS 4.1.1 and LV 8.6.1 to WinXP

New builds: TS 2010 and LV 2010 to WinXP

 

We would see this error occassionally when first installing the 4.1.1 engine but if we did a two reboots (as we had the installer prompt for reboot) and then opened the OI we avoided getting this error.

 

Now we are building some beta deployments using 2010 and we started seeing this error again. However, it does NOT appear if we deploy the sequence editor as part of the build.

 

Also, running the Version Selector does not make the error go away.

 

Any thoughts how to troubleshoot this further?

CTA, CLA, MTFBWY
Active Participant
snowpunter
Posts: 283
0 Kudos

Re: User-defined error code.[error code:-2147319779]

I made a new buid that contained every engine option selected except for the TestStand Sequence Editor and that appeared to solve the issue. I suspect it may have been to not selecting the IVI Step Types (even though I'm not using an IVI steps) but that's just a shot in the dark.

CTA, CLA, MTFBWY
Member
pwaszkewitz
Posts: 156
0 Kudos

Re: User-defined error code.[error code:-2147319779]

We have just started seeing this error on 32-bit Windows 7 machines. We have never seen it before on a Windows XP.

 

The installations are TestStand 4.1.0 with all options on default (we always install the SequenceEditor so that we are able to work temporarily on the machines with a license file we generate for the machine).

 

The error appears when opening a sequence file in the OI (we are using the default C++ OI supplied with TestStand), however, the sequence can be run. It does not appear when opening the sequence with the Sequence Editor.

 

Any ideas what could remedy this behavior?

 

Regards

 

Peter

Trusted Enthusiast
dug9000
Posts: 2,035
0 Kudos

Re: User-defined error code.[error code:-2147319779]

You are definitely rebooting after installing correct? Also, I'd recommend running windows update (if you have it enabled) and rebooting before trying to run any installers since sometimes an update from Windows update installing the background while another installer is running can lead to issues.

 

-Doug

Active Participant
Al.B
Posts: 360
0 Kudos

Re: User-defined error code.[error code:-2147319779]

Hi,

 

This behavior may be caused by a known compatibility issue with the .NET 4.0 client profile and TestStand 4.2.1 and earlier versions.  Another symptom you may see with this issue is an error when switching TestStand versions. 

 

To fix the issue, enter the following into the command prompt:


C:\Windows\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe /tlb "<TestStand>\Bin\TSDotNetUIControls.dll"

 

This will manually register the TSDotNetUIControls.dll type library using the .NET Framework 2.0 RegAsm.exe.  This solution is documented in detail here:

 

KB 5DMFEE2F: Why do I receive a Microsoft Visual C++ Runtime Error when Interacting with a TestStand...

 

Please let me know if this fixes the issue so that we can update the article to address the error message you are seeing.

Al B.
NI TestStand Product Support Engineer
CTA/CLD
Member
GreggRupp
Posts: 13
0 Kudos

Re: User-defined error code.[error code:-2147319779]

This looks like a possible solution, however, there is not a TSDotNetUIControls.dll in the Bin folder for TestStand2010 SP1. The only DotNet files areTSDotNetSupport.dll and TSDotNetSupport.tlb

Active Participant
snowpunter
Posts: 283
0 Kudos

Re: User-defined error code.[error code:-2147319779]

Wrong thread...

CTA, CLA, MTFBWY
Member
pwaszkewitz
Posts: 156
0 Kudos

Re: User-defined error code.[error code:-2147319779]

For TestStand 4.1, the TSDotNetUIControls.dll is there and registering it solved the sequence loading problem of the Operator Interface under Windows 7 for us.

 

Thanks.

 

Peter