Author |
Topic: Newbie connect question... (3 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
JRenza839 Posts: 2 Joined: Aug 29, 2011 |
This is what I have going on:
I've added a reference in my editor for both of these below // not sure which to use here //using OECAPICOM; using OEC.API; ..... private OEC.API.OECClient conn; ...... try { conn = new OECClient(); conn.Connect("sim.openecry.com", 9200, "[user]", "[pass]", false); } catch (Exception ex) { Print (ex.Message); } .... I get this error message: Could not load file or assembly 'API, Version=3.4.0.0, Culture=neutral, PublicKeyToken=b6b45f27e2749b17' or one of its dependencies. The system cannot find the file specified. Also, is the server right "sim.openecry.com"? or is it something else? thanks jeff Jeffrey Renza |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
Hello,
you need to add to the same folder three DLLs: API.DLL, CommLib.DLL and ProtoSharp.DLL. You can copy them from either the latest version of OEC Trader, either from folder API of our C# samples. BTW, OECAPI 3.4 is discontinued. Please download the latest version of Trader or samples to get OECAPI 3.5. Victor Vins Lead Software Developer |
||||
JRenza839 Posts: 2 Joined: Aug 29, 2011 |
Hmm, did what you said and now get this:
Could not load file or assembly 'API, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b6b45f27e2749b17' or one of its dependencies. The system cannot find the file specified. Is this correct? using OEC.API; using ProtoSharp; using OEC.CommLib; Jeffrey Renza |
||||