Exception thrown: 'Opc.Ua.ServiceResultException' in Opc.Ua.Core.dll|OPC UA Standard|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Exception thrown: 'Opc.Ua.ServiceResultException' in Opc.Ua.Core.dll
Avatar
Stitch35
Member
Members
Forum Posts: 9
Member Since:
06/04/2018
sp_UserOfflineSmall Offline
1
10/08/2018 - 01:10
sp_Permalink sp_Print

OPC Ua connect to Matrikon Simulation

- opc.tcp://locallhost:7766/Matrikon.OPC.Simulation.1

It's exception

BadTcpMessageTooLarge 'Messages size 301991168 bytes is too large for buffer of size 65535.

how i  can fix it?

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
10/08/2018 - 06:11
sp_Permalink sp_Print

What client are you using? Seems like a low level stack error where a junk data is being processed as a message. Possible a memory fault.

Avatar
Stitch35
Member
Members
Forum Posts: 9
Member Since:
06/04/2018
sp_UserOfflineSmall Offline
3
10/08/2018 - 19:56
sp_Permalink sp_Print

Client i use opc.ua.Netstandard

Thank you , I fix it by 

public static EndpointConfiguration Create()
{

...

configuration.MaxBufferSize = UInt16.MaxValue * 8192;

...

}

Avatar
Zbynek Zahradnik
Member
Members
Forum Posts: 62
Member Since:
02/24/2014
sp_UserOfflineSmall Offline
4
10/09/2018 - 05:38
sp_Permalink sp_Print sp_EditHistory

That's really large buffer for a message: comes to 512 MB! I doubt that it is right.

Besides, the original number reported (301991168) corresponds to 0x12000500. That "looks" suspicious for it to be the intended message size - besides being big, it can be two 16-bit values rather than a single 32-bit. It looks more like that you are connecting to a port that runs a different protocol, or that the server side returns junk.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 24
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1435
Posts: 4855