wegnear

[-10758] Failed to create remote connection.

Discussion created by wegnear on Feb 26, 2014
Latest reply on Mar 3, 2014 by mhamel

I am attempting to connect to my AF Server using the following code

 

 

 
                NetworkCredential piCredentials = new NetworkCredential("MyUser", "MyPass");
//                NetworkCredential piCredentials = new NetworkCredential("MyUser", "MyPass", "MyDomain");

                try
                {
                    myServer.Connect(piCredentials);
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.Message);
                }

 

 

Unfortunately it fails using the error: "[-10758] Failed to create remote connection."

 

If I use the same credentials to access the server via PI SQL Commander, it works correctly. Did I miss a step in my connection?

Outcomes