Have you tried this locally first with ip just to verify that there is no firewall or dns problem?
Question: are there any issue with API and Windows 8? Visual Studio 2012. Thank you for your response.
I was using IP address so I didn't think DNS was the issue. However, I do have VisualCRON on two servers on separate network and I was able to connect into each other from the management consoles. So I didn't think firewall was the issue.
Below is the exact code and it never got to the last statement, MessageBox.
I had previously tried as local and copied the EXE to the VisualCron folder where the API dll resides. I got the error "Could not load file or assembly "VisualCronAPI, version=1.03.20914 or one of its dependencies..."
On the development station which is Windows 8 I had problem with installing Visual Cron client & server. So, I'm going to start a new environment on another clean station - Windows 8. I was able to install Visual Cron 7.04. I will try and get the local client & server working first. If this work, then I will expand from there.
private VisualCronAPI.Server vcServer = null;
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
try
{
VisualCronAPI.Client vcClient = new VisualCronAPI.Client();
vcServer = new VisualCronAPI.Server();
vcClient.LogToFile = false;
VisualCronAPI.Connection conn = new VisualCronAPI.Connection();
conn.Address = "www.xxx.yyy.zzz";
conn.UserName = "admin";
conn.PassWord = "";
conn.Port = 16444;
// conn.ConnectionType = VisualCronAPI.Connection.ConnectionT.Remote;
conn.ConnectionType = VisualCronAPI.Connection.ConnectionT.Local;
conn.ClientType = VisualCron.ClientConnectionClass.ClientT.APIClient;
MessageBox.Show("new connection");
try
{
vcServer = vcClient.Connect(conn, true);
MessageBox.Show("set connection to client");