API Support Forum
OEC API > API Support > SocketError + Expected TopMsgTypeTagAttribute on Last GFAPI version
Author Topic: SocketError + Expected TopMsgTypeTagAttribute on Last GFAPI version
(2 messages, Page 1 of 1)
Moderators: VPfau
MFrasson3344
Posts: 45
Joined: Nov 09, 2015


Posted: Jul 29, 2023 @ 08:33 AM             Msg. 1 of 2
I'm trying to use last GFAPI version (4.11.519.358).
Connection works, but when i try to request something (historical data, real time subscriprion, search for a contract) i have a disconnection from your side (the event "Disconnected" is raised).

Below the error message details. Any idea?

Reason = SocketError (0)
Exception = "Expected TopMsgTypeTagAttribute"

StackTrace = " in GF.ProtoSharp.Serialization.DeserializeMsg.DeserializeTopMsg[TBase](Func`2 getTypeFromTag, MessageReader msgReader) in GF.Api.Impl.Connection.ConnectProtoClient.c__DisplayClass0_0`2.b__0(Byte[] bytes) in LanguageExt.Option`1.Map[B]...
Mauro frasson

Edited by MFrasson3344 on Jul 29, 2023 08:34 AM
MFrasson3344
Posts: 45
Joined: Nov 09, 2015


Posted: Jul 30, 2023 @ 12:16 PM             Msg. 2 of 2
The problem seems to occur only with older versions of Visual Studio 2013/2015.
Using for example Visual Studio 2019 everything works.
Mauro frasson