API Support Forum
OEC API > API Support > Tryig to connect, but I get disconnected... how to see the log?
Author Topic: Tryig to connect, but I get disconnected... how to see the log?
(3 messages, Page 1 of 1)
Moderators: VPfau
eo707
Posts: 68
Joined: Nov 08, 2011


Posted: Jul 23, 2012 @ 03:49 PM             Msg. 1 of 3
I am trying to connect with my application.. but getting disconnected immediately... the OnDisconnect event fired with the unexprected set to true...

How can I see the reason?
How can I turn on the log, and see inside?

Thank you.
eo707
Posts: 68
Joined: Nov 08, 2011


Posted: Jul 23, 2012 @ 04:05 PM             Msg. 2 of 3
got this in the log file:
23:01:22.160 Dbg Reader Price PriceStream disconnected: System.IO.FileNotFoundException: Could not load file or assembly 'ProtoSharp.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b6b45f27e2749b17' or one of its dependencies. The system cannot find the file specified. File name: 'ProtoSharp.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b6b45f27e2749b17' at OEC.Protocol.Serializer.Deserialize[T](Byte[] src) at OEC.CommLib.ProtoSocket.Read[T]() at OEC.CommLib.ProtoClient`2.ReadLoop() === Pre-bind state information === LOG: User = XXX-PC\XXX LOG: DisplayName = ProtoSharp.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b6b45f27e2749b17 (Fully-specified) LOG: Appbase = file:///D:/XXX/bin/Debug/ LOG: Initial PrivatePath = NULL Calling assembly : CommLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b6b45f27e2749b17. === LOG: This bind starts in default load context. LOG: No application configuration file found. LOG: Using host configuration file: LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config. LOG: Post-policy reference: ProtoSharp.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b6b45f27e2749b17 LOG: Attempting download of new URL file:///D:/XXX/bin/Debug/ProtoSharp.Core.DLL. LOG: Attempting download of new URL file:///D:/XXX/bin/Debug/ProtoSharp.Core/ProtoSharp.Core.DLL. LOG: Attempting download of new URL file:///D:/XXX/bin/Debug/ProtoSharp.Core.EXE. LOG: Attempting download of new URL file:///D:/XXX/bin/Debug/ProtoSharp.Core/ProtoSharp.Core.EXE.
23:01:22.162 Dbg Reader Order MainStream disconnected: System.IO.FileNotFoundException: Could not load file or assembly 'ProtoSharp.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b6b45f27e2749b17' or one of its dependencies. The system cannot find the file specified. File name: 'ProtoSharp.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b6b45f27e2749b17' at OEC.Protocol.Serializer.Deserialize[T](Byte[] src) at OEC.CommLib.ProtoSocket.Read[T]() at OEC.CommLib.ProtoClient`2.ReadLoop() === Pre-bind state information === LOG: User = XXX-PC\XXX LOG: DisplayName = ProtoSharp.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b6b45f27e2749b17 (Fully-specified) LOG: Appbase = file:///D:/XXX/bin/Debug/ LOG: Initial PrivatePath = NULL Calling assembly : CommLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b6b45f27e2749b17. === LOG: This bind starts in default load context. LOG: No application configuration file found. LOG: Using host configuration file: LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config. LOG: Post-policy reference: ProtoSharp.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b6b45f27e2749b17 LOG: The same bind was seen before, and was failed with hr = 0x80070002.
eo707
Posts: 68
Joined: Nov 08, 2011


Posted: Jul 23, 2012 @ 04:11 PM             Msg. 3 of 3
Fixed it..
added the file as a reference..
ProtoSharp.Core.exe

Don't know why before could connect...

Thank you anyhow.

for the records of other developers....

Good luck to all.