Quantcast
Channel: OPC Labs - OPC Labs - Recent Topics - OPC Labs Online Forums
Viewing all articles
Browse latest Browse all 1794

HRESULT: 0X80004005 (E_FAIL) when client.ReadValue(...) is invoked by VB6.exe - by: albi.majun.1960@gmail.com

$
0
0
Dear,

I have already developed and used at customer site nr. 4 production machine working with a software solution developed with 2020.2 version and with 2020.2 version on customer server where solution is already running smoothly, I'm asking for a confirmation of right steps to be done.

The point that I have updated the version of OPCLab on my development computer from 2020.2 to 2121.2 and I developed a newest add-on for a couple newest production machines.
So I tested it a bit before going in production, but I faced the following issue "HRESULT: 0X80004005 (E_FAIL)"

I got the error in subject when following code is executed and is reached the instruction Client.ReadValue(.........)

Label1.Caption = " Passo 0 -> prova lettura"
Label1.Refresh

txtChat$ = "ns=6;s=::RicOPCUA:recipeOpcUa.par.RecipeName"
cosa$ = Client.ReadValue(ServerOPCUA$, txtChat$)

If Err.Number <> 0 Then
risp = MsgBox("*** PASSO ZERO >>> lettura Failure parametro: " & Err.Source & ": " & Err.Description & vbCrLf, vbCritical)
GoTo esci
Else
risp = MsgBox("RecipName= " & cosa$, vbDefaultButton1)
End If

So I believe that could depends from missing reference of right SDK library version included in the newest .exe file generated.

I have already prepared the Run-time install.bat file as per documentation

"QuickOPC-2021.2-Windows-Production /TYPE=productioncom"

So could you please confirm that this is ste step to be done to fix the error in subject ?
The previous version of applicationwill continue to work even with 2020.2 , because I will not uninstall, or I have to recompiled with newest 2021.2 ?

See attachments

Regards+thanks

Alberto

Viewing all articles
Browse latest Browse all 1794

Trending Articles