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.

OPC NET API error - result ID: E_NETWORK_ERROR

More
22 Oct 2024 04:28 #13227 by support
Hello.

It looks like that at the botton of this, there is "Access denied" error (DCOM related).

What kind of application do you have (such as Windows desktop app, console app, Web app, Windows service etc.)?

Thank you

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

More
22 Oct 2024 00:39 #13225 by justin@regionalit.com.au
Hello @Support,

Can you please advise on the error?

Thanks

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

More
31 Jan 2024 22:31 #12538 by justin@regionalit.com.au
Another stack trace while writing value

2024-02-01 09:18:36.168 +11:00 8000000d-0000-f800-b63f-84710c7967bb [Error] JIOVINO (Rit.Almads.Web.Areas.Terminals.Controllers.PreCleanerController) Error writing value: 1540001 to PLC, TagName Plant.PreClean.Global.ALMADStoPLC_DINT_x.ALMADStoPLC_DINT_02 An OPC operation failure with error ID '{opcfoundation.org/DataAccess/}E_NETWORK_ERROR.0xFFFFFFFF' occurred, originating from 'OpcLabs.EasyOpcClassic' and with depth of 2. The inner exception contains details about the problem.
2024-02-01 09:18:36.168 +11:00 8000000d-0000-f800-b63f-84710c7967bb [Error] JIOVINO (Rit.Almads.Web.Areas.Terminals.Controllers.PreCleanerController) OPC NET API error - result ID: E_NETWORK_ERROR; Could not connect to server.
+ The client method called (or event/callback invoked) was 'WriteMultipleItemValues[1]'.
2024-02-01 09:18:36.168 +11:00 8000000d-0000-f800-b63f-84710c7967bb [Error] JIOVINO (Rit.Almads.Web.Areas.Terminals.Controllers.PreCleanerController) CoCreateInstanceEx: Access is denied.

2024-02-01 09:18:36.239 +11:00 8000000d-0000-f800-b63f-84710c7967bb [Error] JIOVINO (Rit.Almads.Web.Areas.Terminals.Controllers.PreCleanerController) at OpcLabs.EasyOpc.Internal.EasyUtilities.CheckSuccess(OperationResult operationResult)
at OpcLabs.EasyOpc.DataAccess.IEasyDAClientExtension.WriteItemValue(IEasyDAClient client, DAItemValueArguments itemValueArguments)
at OpcLabs.EasyOpc.DataAccess.IEasyDAClientExtension.WriteItemValue(IEasyDAClient client, ServerDescriptor serverDescriptor, DAItemDescriptor itemDescriptor, Object value)
at OpcLabs.EasyOpc.DataAccess.IEasyDAClientExtension.WriteItemValue(IEasyDAClient client, String machineName, String serverClass, String itemId, Object value, VarType dataType)
at OpcLabs.EasyOpc.DataAccess.IEasyDAClientExtension.WriteItemValue(IEasyDAClient client, String machineName, String serverClass, String itemId, Object value)
at Rit.Almads.Web.Areas.Terminals.Controllers.PreCleanerController.SetValueToPLC(String tag, Int32 value) in C:\Dev\Repos\ALMADS_Web\Rit.Almads.Web\Areas\Terminals\Controllers\PreCleanerController.cs:line 4300

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

More
31 Jan 2024 22:25 #12537 by justin@regionalit.com.au
//InnerException.InnerException.Message
2024-02-01 09:19:06.283 +11:00 8000000d-0000-f800-b63f-84710c7967bb [Error] JIOVINO (Rit.Almads.Web.Areas.Terminals.Controllers.PreCleanerController) CoCreateInstanceEx: Access is denied.

//StackTrace
2024-02-01 09:19:06.283 +11:00 8000000d-0000-f800-b63f-84710c7967bb [Error] JIOVINO (Rit.Almads.Web.Areas.Terminals.Controllers.PreCleanerController) at OpcLabs.EasyOpc.Internal.EasyUtilities.CheckSuccess(OperationResult operationResult)
at OpcLabs.EasyOpc.DataAccess.IEasyDAClientExtension.ReadItemValue(IEasyDAClient client, ServerDescriptor serverDescriptor, DAItemDescriptor itemDescriptor, DAReadParameters readParameters)
at OpcLabs.EasyOpc.DataAccess.IEasyDAClientExtension.ReadItemValue(IEasyDAClient client, ServerDescriptor serverDescriptor, DAItemDescriptor itemDescriptor)
at OpcLabs.EasyOpc.DataAccess.IEasyDAClientExtension.ReadItemValue(IEasyDAClient client, String machineName, String serverClass, String itemId, VarType dataType)
at OpcLabs.EasyOpc.DataAccess.IEasyDAClientExtension.ReadItemValue(IEasyDAClient client, String machineName, String serverClass, String itemId)
at Rit.Almads.Web.Areas.Terminals.Controllers.PreCleanerController.ReadValueFromPLC(String tag) in C:\Dev\Repos\ALMADS_Web\Rit.Almads.Web\Areas\Terminals\Controllers\PreCleanerController.cs:line 4323

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

More
31 Jan 2024 10:54 #12535 by support
Hello.

In order to troubleshoot this, we will need more information. There will be further diagnostics inside the exception (i.e., the InnerException inside the InnerException), and this is what is most interesting.

Please place a breakpoint into your program, display the exception objects, and expand its InnerException, and its InnerException, recursively - until there is some. And make a screenshot showing what type these exception are, what are there Message-s, and ideally also their stack traces.

Thank you

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

More
31 Jan 2024 09:27 #12534 by justin@regionalit.com.au
HI Guys,

I hope you are doing well. We are encountering an issue while writing and reading value from the OPC server. We are using .NET 6 platform to integrate with the OPC server. We can browse servers and find the KepwareEX server but receive following error while reading or writing to a tag. I am using synchronous read (ReadItemValue) and write(WriteItemValue) methods of EasyDAClient class.

An OPC operation failure with error ID '{opcfoundation.org/DataAccess/}E_NETWORK_ERROR.0xFFFFFFFF' occurred, originating from 'OpcLabs.EasyOpcClassic' and with depth of 2. The inner exception contains details about the problem.
OPC NET API error - result ID: E_NETWORK_ERROR; Could not connect to server.


The support on following article specifies to use the latest version and we are using the latest version.
ReadMultipleItems - Failure: OPC NET API error - result ID: E_NETWORK_ERROR; Online Forums - OPC Labs

Please let me know if you need more information. We are running near to a deadline and it would be great if we can resolve this asap.
Could you please help us to resolve the issue or forward this thread to your support team if needed?

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

Moderators: support
Time to create page: 0.054 seconds