Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

RPC Server unavailable when trying to connect across LAN

More
28 Jun 2013 12:59 #1349 by support
Well, as the clients behave the same, this is something not truly related to the client product(s), but to the system setup.

Can you please check the Windows logs (Application, System, and Security logs) on both the client and server computer, to see if there aren't anything suspicious (especially related to RPC or DCOM?)

Please Log in or Create an account to join the conversation.

More
27 Jun 2013 05:19 #1348 by davejp21
One added footnote, when I use easyopc or poweropc, the results are the same. One thing to note, I tried both opc clients with another identical opc server on the network called "scada-2", what is interesting is when attemping to communicate to SCADA-2, I get "Access denied" with both opc clients. I checked, all services are running on SCADA-2 and the firewall is off.

Just thought it might help.

Please Log in or Create an account to join the conversation.

More
27 Jun 2013 04:51 #1347 by davejp21
Hello,

The other OPC client I was using is called poweropc. It does the same thing easyopc cleint does. See screen shot. What is interesting about the other software, is that it cannot find the OPC servers on the "SCADA" computer either.

David
Attachments:

Please Log in or Create an account to join the conversation.

More
19 Jun 2013 08:14 #1344 by support
Thank you very much detailed description. These parts are clear now; but unfortunately I do not yet have a hint to resolve it.

One more thing to clarify: Can you please describe which other OPC client you have used as well, and what the results were in the different situations?

What I am trying to establish is if there is a different between the clients, or not. Different clients, however, show errors differently, so I need to know which client you have tried, and precisely how it behaved.

Thank you

Please Log in or Create an account to join the conversation.

More
17 Jun 2013 17:55 - 17 Jun 2013 18:00 #1342 by davejp21
Hello,

I am sorry for the confusion. I may have also given you some slightly wrong information. I re-checked everything and came up with 2 screen shots that should help you to see whats going on.

So to review. I have 2 computers. One, Called "SCADA", which has several working OPC servers on it, and the other computer called "Develop" on the same Local area network as "SCADA". On "SCADA" I am interested in accessing data from either OPC server named "Citect.OPC.1" or "Citect.OPCRemote.1". Either one will work. And both work locally for data reads and writes.

When I use your OPC demo application locally on "SCADA": I can browse for OPC servers, and connect to both "Citect.OPC.1" or "Citect.OPCRemote.1" and reads and writes data to tags. Please See screen shots attached.

When I use your OPC demo application over the LAN from "Develop" to "SCADA": I can browse for machines and it does find them. However, I cannot browse for OPC Servers on remote machines. When I do attempt to look for OPC Servers on "SCADA", I get the "RPC server not available message". Also if I manually type in the Machine Name "SCADA", and manually enter the OPC server name, I cannot read nor write data to either "Citect.OPC.1" or "Citect.OPCRemote.1" . The response I get, after manually entering the machine "SCADA" and server name "Citect.OPCRemote.1" is "The RPC Server is not available". The response I get, after manually entering the machine "SCADA" and server name "Citect.OPC.1" is that long failure string. Please See screen shots attached for specific error messages.

All DCOM and RPC services are running on both computers, and it makes no difference if the firewall is on or off.

This has all been verified to be true and correct as I have explained it here. Please Forgive me, I should have been more careful with my description of events before. As such I have tried to be very specific in this case to avoid any more confusion.

Thank you for your help!

David Perotti

Attachments:
Last edit: 17 Jun 2013 18:00 by davejp21.

Please Log in or Create an account to join the conversation.

More
14 Jun 2013 18:59 #1341 by support
I am getting confused now. I will need some clarification.

The "RPC server is unavailable" is most likely a symptom of "total" failure - we could not connect to the server at all. On the other hand, the error with "Server failed.... OPC_STATUS_FAILED..." indicates that in fact the connection was made, and it's just a problem reported over that connection.

So, how could making a typo turn the "RPC server is unavailable" error into the "Server failed.... OPC_STATUS_FAILED..." error? Have you made a typo that resulted in connection to a different OPC server, or a different machine - and a successful one? That seems quite unlikely. What typo precisely was it then?

Also, when you say "I also tried using another company's OPC client and get same results", does it mean that you got "RPC server is unavailable" (the text of this error comes from Microsoft), or an error similar to our ""Server failed.... OPC_STATUS_FAILED..."? (you cannot get *precisely* that one unless the other product is also built with QuickOPC, because the message text comes from our product).

Please Log in or Create an account to join the conversation.

More
10 Jun 2013 17:53 - 10 Jun 2013 17:57 #1332 by davejp21

Hello,

Ok I did some more testing, To verify everything is ok. I went to the server computer. On the server OPCEnum is running. Also I ran your OPC client demo and looked at an active tag locally on the server computer. Everything was fine, tag read successfully via OPC...

So I went back to the remote computer. Manually entered the machine name, OPCServer name, and a the same tag name I was reading locally on the server computer. On the remote computer I got the "RPC server unavailable" error message this time.

The reason I got the other error last time is because I made a typo. I have attached a screen shot from the remote computer side. Is there any thing else I could be missing?

David P
Attachments:
Last edit: 10 Jun 2013 17:57 by davejp21.

Please Log in or Create an account to join the conversation.

More
10 Jun 2013 08:39 #1331 by support
OK, so it is now clear that the "RPC Server enumerable" is only related to browsing for OPC Servers. This is handled by so-called OPCEnum component on the server side. You should check if you have such service & process running.

But you can get around it by entering the server information manually, as you did, so actually it is not a "blocking" issue at the moment.

The other problem, with "Server failed. ...." etc., is clearly explained in the error message itself. It tells you that you need to investigate on the side of the OPC Server. Your next steps should be to check if the server is running well, consult the document of the server to see when it can return the "OPC_STATUS_FAILED", and if that fails, contact the vendor of the server, to help you out. If the server is not running well, clients cannot resolve it...

Best regards

Please Log in or Create an account to join the conversation.

More
10 Jun 2013 00:00 #1330 by davejp21
Hello,

Sorry it took so long to get an update. As of Right now, simply using your demo OPC client, trying to browse for OPC servers on a remote computer I get the "RPC server unavailable" message. If I enter the server name manually, then browse for tags, same thing happens. If I enter all the correct information, then try to read or write the tag I get:

"Server failed. This error originates in the OPC Data Access server. A vendor specific fatal error has occurred within the server. The server is no longer functioning. The recovery procedure from this situation is vendor specific. The application will try to reconnect to the server after a configurable period. Technical information: The call to IOPCServer::GetStatus on the OPCServer object has returned OPC_STATUS_FAILED in the OPCSERVERSTATUS structure. "

I also tried using another company's OPC client and get same results. Turning the firewall on or off makes no difference, and all the associated Services are running of the computer in question.

PLEASE HELP!

Please Log in or Create an account to join the conversation.

More
01 Jun 2013 10:31 #1327 by support
Are you getting this error when making a browse call from your code, or when using a dialog?

If it is from the code, can you post here the piece of code that does it?
In both cases, I am mostly interested in how precisely is the machine name specified.

Have you tried any other OPC client to do the same task?

Many thanks

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.065 seconds