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.

Stack Problem - 0x80080000 in 'Session.Read'

More
03 Jul 2024 14:38 #12907 by m.spinsanti@swoa.it
I have applied the suggestion.
Perfect: the max-lenght of string come set and error has disappeared

Thank you very much.
The following user(s) said Thank You: support

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

More
30 Jun 2024 09:25 #12897 by support
Hello.
The example is in .NET, but the principles explained in the article relate to all environments.

Following I am proposing the steps to take in PHP. I have not verified them, but they should work. If you run into problems, let me know.

1. Determine the name and location of the executable that runs your PHP scripts. Depending on your solution, the name might be e.g. php-win.exe, php-cgi.exe, php.exe, or something else. Aldo, figure out where it is running from (the directory on the disk).

2. Download the attached MyApplication.Config.xml file.

File Attachment:

File Name: MyApplicat...nfig.xml
File Size:12 KB


3. Place this file to the directory where your PHP executable is, and rename it to the name (without extension) of your PHP runner, plus ".Config.xml". For example, if you were using php-win.exe, rename the configuration file to php-win.Config.xml.

4. Edit the configuration file as needed. In your case, locate the MaxStringLength element, and increase it to make it cope with the length of strings coming from the server.

5. Add following at the beginning of your PHP program:
$ClientManagement = new COM("OpcLabs.EasyOpc.UA.EasyUAClientManagement");
$ClientManagement->SharedParameters->EngineParameters->ConfigurationSources = 4; //UAConfigurationSources.AppConfig
Best regards
Attachments:

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

More
28 Jun 2024 09:36 #12896 by m.spinsanti@swoa.it
The example is good in .NET env and with app source code...
Is usable with PHP language? And where the XML configuration file must have places?

Thanks a lot.

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

More
28 Jun 2024 08:37 #12895 by support
Hello.

Look at this:

- opclabs.doc-that.com/files/onlinedocs/OPCLabs-OpcStudio/Late...plication%20Configuration.html

You need to include the XML file properly with your app. In case it is not clear from the comments in the examples source code: In the C# examples solution installed with QuickOPC, there is UANetSdkConfiguration project which shows it in full.

There is <MaxStringLength> setting in the example's XML file, and you can change it to a value that suits you well.

Best regards

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

More
27 Jun 2024 13:05 #12892 by m.spinsanti@swoa.it
I'm certain in stack problem because the message is quite clear and - specifically - MaxStringLength (1048576 < 1097220) is too small! (complete error message below)

What i need is a support on how setting up new values. I have tried to read references but are not very simple and clear...

Thanks again.

OpcLabs.EasyOpc.UA.Engine.UAEngineException: UA SDK error (Opc.UA.ServiceResult=0x80080000) in 'Session.Read'. OPC UA service result - {BadEncodingLimitsExceeded}. Unexpected error processing response.
+ The client method called (or event/callback invoked) was 'ReadMultiple[9]'. ---> OpcLabs.EasyOpc.UA.UAServiceException: OPC UA service result - {BadEncodingLimitsExceeded}. Unexpected error processing response.
--> {BadEncodingLimitsExceeded}. MaxStringLength 1048576 < 1097220. Unexpected error processing response.
--- Fine della traccia dello stack dell'eccezione interna ---

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

More
27 Jun 2024 07:19 #12891 by support
Hello.

The BadEncodingLimitsExceeded can be returned for various reasons, such as:

- MaxMessageSize exceeded
- MaxStringLength exceeded
- MaxByteStringLength exceeded
- Maximum nesting level of InnerDiagnosticInfo exceeded
- MaxArrayLength exceeded
- general value nesting level exceeded

It is likely that the server is returning something large that it was not returning before.
In order to troubleshoot this, can you please:

1. Explain why you think this problem may have to do with insufficient stack.

2. Obtain the full .Message text of the exception (the […] indicates that there is more to it; you are showing what the default formatting gives, which is .ErrorMessageBried).

3. Obtain the exception call stack (.StackTrace).

4. Obtain the .InnerException (if not null), its .Message and its .StackTrace, and do that recursively for more inner exception if they are there.

Best regards

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

More
26 Jun 2024 10:45 #12890 by m.spinsanti@swoa.it
Hello!

For about a month the ReadMultiple method of an OPC-UA connection returns the error below:

URI=opc.tcp://192.168.0.80:4840;NODEID=ns=3;s=NC/ProductionMonitor/PRDD2;*** Failure: UA SDK error (Opc.UA.ServiceResult=0x80080000) in 'Session.Read'. OPC UA service result - {BadEncodingLimitsExceeded}. Unexpected error processing response. [...]

The source code in question has been working without any problems for years.

Could you give us a suggestion on how to fix this error?
Is the insufficient stack relative to your library? Can it be configured? How can it be query?

Thanks in advance for your help.

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

Moderators: support
Time to create page: 0.057 seconds