Note: We cannot use the GUI because the GUI generates C# syntax 8 which is not supported by .NET FW. This last thing is a major shortcoming of the RemObjects SDK IMO.
Unhandled Exception: System.Exception: Too few bytes read from stream (61942 expected but 0 read)
at RemObjects.SDK.Helpers.StreamHelpers.CopyStreamToStream(Stream source, Stream destination, Int32 count)
at RemObjects.SDK.Helpers.StreamHelpers.CopyStreamToStream(Stream source, Int32 size)
at RemObjects.SDK.IpTcpClientChannel.IRodlAccess.RetrieveRodl()
at RODLDownloader.Program.Main(String args)
Unhandled Exception: System.Exception: No client channel registered for the requested protocol: localhost
at RemObjects.SDK.ClientChannelTypeManager.CreateClientChannelForProtocol(String protocol)
at RemObjects.SDK.ClientChannel.ChannelMatchingTargetUri(Uri uri)
at RODLDownloader.Program.Main(String args)
var channel = new RemObjects.SDK.Server.IpTcpServerChannel();
channel.SecurityOptions.MaxRequestSize = maxMesSize; // FVC 04/2025: This is needed to avoid package too large errors - see Which parameter to set to fix Package too large error - #22 by fvancrae
server.NetworkServer.ServerChannel =channel;
server.NetworkServer.Port = 7789;
BinMessage message = new BinMessage();
message.MaxMessageSize = maxMesSize;
message.MaxDecompressedMessageSize = maxMesSize;
server.NetworkServer.RegisterServerMessage(message);
Officinall.Utility.LogSystem.LS().AddLog(Officinall.BaseClasses.LogLevel.llInfo, “Starting OffNet RemObjects Server”);
server.Run(args);