18:07, EET
October 15, 2020
Hi,
I’m trying to connect to an OPC UA Client written with Prosys using the Prosys Sample Client. I get the certificate message and can accept it (it says the certificate is invalid in some form, but I can still just accept it).
But after that it takes about 2 seconds and I get the message: Failed to CreateSession.. StatusCode=Bad_UnexpectedError (0x80010000 – An unexpected error occured).
Do you know common causes for this? And what I might need to do?
Thanks & Greetings
Patrick Kottmeyer
17:21, EET
December 21, 2011
The usual reason for Bad_Unexpected error is an unexpected exception in the server implementation.
You write that you are “trying to connect to an OPC UA Client”, but did you mean you are connecting to your own server written with Sentrol, too? Can you connect to the UaSampleServer, though?
If the server certificate is invalid, it may help to regenerate it. If you remove (rename) the old one in PKI\CA\private folder, the application should create a new one automatically.
10:42, EET
October 15, 2020
Sorry for the unclear formulation. Yes, I use the testclient (based on the test implementation you provide) to connect to a server written with Sentrol components. Connection to other servers work’s fine. Just not this one.
The server side at least does not log any problems / exceptions. Which makes it harder to determine the cause of this.
I’ll see if it helps to regenerate the certificates. Thanks for the tip.
10:57, EET
December 21, 2011
OK. Check also, if you have any event handlers in UaServer. If they raise exceptions, it would probably turn out like this in the client.
If you don’t find anything, I can provide you a debug version of Sentrol that can log more of the server internals. Send email to sentrol-support at prosysopc dot com for this, please.
Most Users Ever Online: 1919
Currently Online:
14 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 724
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1526
Posts: 6457
Newest Members:
forrestdilke5, ernestoportus31, martin123, rickie5305, shaylamaggard4, rickyjuarez140, jonathonmcintyre, fannielima, kristiewinkle8, rustModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1028, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0
Administrators: admin: 1