Below is the code that is giving me the error:
Code: Select all
Uri uri = new Uri(sUri);
NetworkCredential creds = new NetworkCredential(sLogin, sPassword, "[SERVER]");
string dbPIN = sUri + sPIN;
Environment.SetEnvironmentVariable("SPS_CERTPINS", dbPIN, EnvironmentVariableTarget.Process);
if (iConsole == 0) { WriteLog.WriteLine(Convert.ToString(DateTime.Now) + ": " + "Login/password set" + sLogin); } else { Console.WriteLine("Login/Password " + sLogin + " / " + sPassword); }
/// ══════════════════════════════════════════════════════════════════════════
/// connect to server and authenticate
/// ══════════════════════════════════════════════════════════════════════════
///
using (SelectServer sps = new SelectServer(uri, creds))
{
DisambiguateLookups(sps);
}
The code listed above works in production using the 4.3.38 DLLs.