LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.NET Framework

Hello, 

 

I am trying to use the .NET framework construct to allow access to a certain .DLL file.

 

 

Due to the nature of my work i cannot handout this file which probably makes this an even harder issue to solve!

 

Anyway.... any info is welcome.....

 

I select the .NET Construct and select the DLL.

 

I then choose a class and the Construct icon changes to remoteAPIClient box with 3 inputs below:

 

serviceIP

repservicePort

pubservicePort

 

if i click on one of these it shows me the command: remoteAPIClient(String serviceIP, Int32 repservicePort, Int32 pubservicePort)

 

I know that the serviceIP is looking for the machine running the software which is my local machine, so i put localhost in a string constant

I know that the repservicePort is one of the ports it is communicating with, so i put Int 32 constant 80

I know that the pubservicePort is one of the ports it is communicating with, so i put Int 32 constant 81

 

Yet when i run the vi, which might i add has nothing else inside instantly i get an error code of 1172

 

Does anyone know what i am missing? 

 

Sorry if this is sketchy but it all i got......

 

Thanks

 

Alex

 

0 Kudos
Message 1 of 4
(2,617 Views)

Can i also add that i have also tried instead of localhost 127.0.0.1

0 Kudos
Message 2 of 4
(2,613 Views)

No-one have any idea?

 

Thanks

 

Alex

0 Kudos
Message 3 of 4
(2,589 Views)
1172 is just a generic error that indicates that some exception occurred when calling into the .NET code. LabVIEW adds a try/catch around any .NET calls that it makes. Any unhandled exceptions are caught and returned as error 1172.

Note that the error source string should contain additional information, such as the exception message and stack trace. That information is where you need to start troubleshooting this problem. Without access to your DLL, no one here will be able to guess what is happening, unfortunately.
Jarrod S.
National Instruments
0 Kudos
Message 4 of 4
(2,562 Views)