Login Cart  Cart
logo

Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
Offline matrixIII  
#1 Posted : Tuesday, February 7, 2012 6:37:18 PM(UTC)
matrixIII
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 8, 2012 5:56:22 PM(UTC)  | Reason: Not specified

Offline Support  
#2 Posted : Wednesday, February 8, 2012 9:44:29 AM(UTC)
Support
Rank: Administration

Joined: 2/23/2008(UTC)
Posts: 7,505

Thanks: 331 times
Was thanked: 195 time(s) in 186 post(s)
Could it be different versions of VisualCron in the environments?
Henrik
Support
http://www.visualcron.com

Please like VisualCron on facebook!
Offline matrixIII  
#3 Posted : Wednesday, February 8, 2012 5:55:50 PM(UTC)
matrixIII
Rank: Advanced Member

Joined: 5/21/2010(UTC)
Posts: 61

Was thanked: 2 time(s) in 2 post(s)
Originally Posted by: Support Go to Quoted Post
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.
thanks 1 user thanked matrixIII for this useful post.
Support on 2/9/2012(UTC)
Users browsing this topic
Guest
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.

footer
Follow VisualCron on Facebook Follow VisualCron on Twitter   Join the VisualCron group on LinkedIn neteject.com anyconnect.net millimetrics.com xendapp.com