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.

Problem reading and writing values to SISCO AX-S4 ICCP Server from Windows Service

More
01 Dec 2012 08:45 #1135 by support
Great - I am glad that it helped :-)
Zbynek Zahradnik

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

More
30 Nov 2012 21:03 #1134 by gmessoroch
Thank you very much for suggestions. The lesson learned is that DCOM communications can cause major headaches. :)
As you suspected, AX-S4 ICCP server in our environment was not running as a service.
After we made the change to run it as a service everything became happy again. And, since it will be run as a service in the production environment, I abandoned any further attempts to fix DCOM problems.
Thanks again.

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

More
30 Nov 2012 09:29 #1133 by support
This can be DCOM configuration issue (even if connecting locally). It appears that the SISCO server either dos not start, or it dos starts but fails to register its COM class factories in a timely manner (this is enforced by Microsoft).
Is the SISCO server also running as a Service? (just asking; it is not necessary but it is recommended, if any of the clients is a service, as in your case).
In the DCOM configuration, is the SISCO server set to run under a specific user account? You may have it set to run under "Launching user", which would explain the different behavior when ran from Windows Forms app. If it is set as "Launching user", and your service starts it, it will start under the credentials of the account that runs *your* service, and that may not be enough for the SISCO server to work properly. Make sure you set it to run under a Specific (fixed) account (not "Launching user" or "Interactive user"), and that the account has the proper permissions. You can start with using your own user account, for testing, and if that works, you'll know you just need to decide on which account to use and what permissions it needs to have.
Regards,

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

More
29 Nov 2012 19:59 #1132 by gmessoroch
I’m developing a service that needs to publish OPC data to SISCO AX-S4 ICCP server. The service is Windows server, which serves as wrapper for WCF service. Basically, all of the business logic is encapsulated in WCF service, and Windows service provides basic OS interaction (Start/Stop).

In its simplest form, the code needs to do read one value from the server, and to write one value to the server. Both the service and OPC server reside on the same physical box. Ability to read and write desired values has been verified through use of Matrikon and SISCO OPC clients… Firewall is turned off…

The following error comes back (including a part of my error message specifying parameters that get passed in), when the following call is made against SISCO AX-S4 ICCP server

_easyDAClient.WriteItemValue(_activeICCPLinkServer, _serverClass, itemName, itemValue);

“Unable to write to OPC server _activeICCPLinkServer =localhost, _serverClass=SISCO.AXS4ICCP.3, _itemName=UtilitySiteA:DataValue~Measurement_03.Value, _itemValue=0.3464102
2012-11-29 13:43:46.6427|INFO|PDAC.PdacToEMS.Service.Controller.DataProcessor|Publish Data Failure. Exception: OpcLabs.EasyOpc.OpcException: OPC operation failure. ---> System.Runtime.InteropServices.COMException: Server execution failed”

However, the same code works when it is run against Matrikon OPC Server. And, the most puzzling part for the moment, is that code works against both OPC servers when executed from a Windows Forms App, instead of a service.

Any help would be appreciated.

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

Moderators: support
Time to create page: 0.047 seconds