logo

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Gustavo  
#1 Posted : Tuesday, December 15, 2015 5:30:46 AM(UTC)
Gustavo

Rank: Newbie

Joined: 12/15/2015(UTC)
Posts: 1

Thanks: 1 times
Hi,

I am trying the tutorial "Lesson 3 : Quick Connect" from the Appi Guide.html
in Visual Studio 2012 and I am running into a problem at step 2 with the function Get Endpoints() at the row:
"IUaConnection::GetEndpoints(serverURL.c_str(), *localeId, *profileUris, *foundEndpoints, status)"

While using this with an OPC UA Server the following error appears:
"UAStack:0x8106000, 0x8106000 - could not translate"

From what I understand the problem doesn't have to do with finding the server but with an intern error from the UAStack.

However I can't figure out how to solve this, since the Environment Setup in Visual in Studio is correct
(Adding the link libraries, Adding the path to the link libraries, Adding the paths to the libraries header files, All DLLs are in the PATH).


What does the error mean and how can I solve it?

I would appreciate any help
Offline Patrick Griffiths  
#2 Posted : Tuesday, December 15, 2015 7:39:48 AM(UTC)
Patrick Griffiths

Rank: Advanced Member

Joined: 11/28/2014(UTC)
Posts: 37

Was thanked: 4 time(s) in 4 post(s)
Gustavo,

Two things:
- The 'could not translate' message is telling you that the language files aren't setup so it can't get a textual description of the error code for you. There's a section in the docs that describes how to do it.
- The error code means "The hostname could not be resolved."

I suggest you check for a typo in the host name. If you're sure that the name is correct, check that the name can be resolved via DNS or a hosts file. You can use nslookup at the command line to check that the name can be resolved.

It's a common problem for OPC UA to have issues with name lookup. Clients will connect to a server using an IP address, and the server will report names to the client that it can't resolve. The client then tries to use to connect to the server. It's especially common with VMs running on host only networking.

HTH,
Patrick

thanks 1 user thanked Patrick Griffiths for this useful post.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.