LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error code 1172

I am trying to create an Automation Interface for a complex .Net application. LabView was chosen as the most likely platform for Automation Client development for our customers. There are many events in our application. While I have been successful in registering for a .Net event in a very simple program I can not seem to duplicate the result when registering in the Automation Client that I am using for testing. I get Error 1172 Register Event Callback with possible reason A .Net exception occured. To this point I have been unsuccessful in determining the .Net exception. Here is the relevent C# code:

 

public delegate void CalibrationStatusDelegate();

 

public interface IACalibration

{

event CalibrationStatusDelegate OnCalibrationStatusChange;

....

}

 

 

public class AutomationCalibration : SingletonRefObject, IACalibration, IUltracalBeamDetection

{

.

.

.

 private void FireStatusChanged()

{

if (OnCalibrationStatusChange != null)

OnCalibrationStatusChange();

}

.

.

.

}

 

I have tried casting my Interface (IACalibration) object to the concrete class (AutomationCalibration) implementing the interface, but I still get the same error. Anybody know what I may be doing wrong?

0 Kudos
Message 1 of 2
(3,466 Views)

I created a simple C# app and VI to duplicate the problem. A big part of it is that the object acting as the server for the event is a remote object. It seems that LabView is throwing this error:

 " System.IO.FileNotFoundException: Could not load file or assembly 'DNEventRegAsm, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified"

 

What is the DNEventRegAsm file?

0 Kudos
Message 2 of 2
(3,449 Views)