VisualCron
»
Support
»
API
»
[Solved] Simple Connection. What am I missing?
 Rank: Advanced Member
Joined: 5/21/2010(UTC) Posts: 61
Was thanked: 2 time(s) in 2 post(s)
|
Ok so I am trying to make a simple connection but for some reason I can't connect. What am I missing here... Quote: Console.WriteLine("Code Started...");
Server _Server = new Server(); Client _Client = new Client(); _Client.LogToFile = false; Connection _Connection = new Connection(); _Connection.ConnectionType = Connection.ConnectionT.Remote; _Connection.Address = "server_ip"; _Connection.UserName = "username"; _Connection.PassWord = "password"; _Connection.Port = 16444;
_Server = _Client.Connect(_Connection, true);
Console.WriteLine(_Server.Connected.ToString());
I get one line of "New Client Connected" in the logs when I attempt the connection but not the ususal "User xxx logged in...". If I use the same exact username/password on the same development machine in the test client that comes with the VisualCron API directory, I can connect fine! But in my above case, I always get a "false" for my last Console.WriteLine statement. What am I missing here? Thanks Edited by user Wednesday, February 08, 2012 5:56:22 PM(UTC)
| Reason: Not specified
|
|
|
|
|
|
 Rank: Administration
Joined: 2/23/2008(UTC) Posts: 6,120  Location: Sweden Thanks: 198 times Was thanked: 117 time(s) in 112 post(s)
|
Could it be different versions of VisualCron in the environments? |
|
|
|
|
|
|
 Rank: Advanced Member
Joined: 5/21/2010(UTC) Posts: 61
Was thanked: 2 time(s) in 2 post(s)
|
Originally Posted by: Support  Could it be different versions of VisualCron in the environments? Thank you! The dll's for Test client under VisualCron API folder was pointing to C:\Program Files\VisualCron\*.dll and for my code there were pointing to a different copy which I am not sure where I copied from. As soon I checked the dll reference to C:\Program Files\VisualCron\*.dll, it started working! There are both connecting to the same Visual Cron server.
|
 1 user thanked matrixIII for this useful post.
|
|
|
|
| Users browsing this topic |
|
Guest
|
VisualCron
»
Support
»
API
»
[Solved] Simple Connection. What am I missing?
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.