Hello Henrik
After latest update (7.5.2) on both client and server, the line below which used to work
vs = vc.Connect(conn, true);
now produce this error:
A user callback threw an exception. Check the exception stack and inner exception to determine the callback that failed.
Before 7.5.2 update, the application using the API has no problem connecting from any folder on any workstation or server within the network.
The app resides on a folder that includes the updated VisualCronAPI.dll and VisualCron.dll (same version as that on the server)
After 7.5.2, error occurs on any folder on any machine except on the V/Cron server in C:\Program Files (x86)\VisualCron
Output of the EXE is:
address=192.168.111.8
port=16444
username=admin
password=
A user callback threw an exception. Check the exception stack and inner exception to determine the callback that failed.
Complete code snippet:
try
{
VisualCronAPI.Server vs = new VisualCronAPI.Server();
VisualCronAPI.Client vc = new VisualCronAPI.Client();
vc.LogToFile = false;
if (vs != null)
{
VisualCronAPI.Connection conn = new VisualCronAPI.Connection();
conn.Address = "192.168.111.8";
conn.Port = 16444;
conn.UserName = "admin";
conn.PassWord = "";
conn.ConnectionType = VisualCronAPI.Connection.ConnectionT.Remote;
Console.WriteLine("address={0}\nport={1}\nusername={2}\npassword={3}", conn.Address, conn.Port, conn.UserName, conn.PassWord);
vs = vc.Connect(conn, true);
if (vs != null)
{
Console.WriteLine("connected {0}", vs.Connected);
}
}
}
catch(Exception ex)
{
Console.WriteLine(ex.Message.ToString());
}
Console.ReadKey();