I have a c# DOT NET Winforms application that has been working just fine in the developer environment. Yesterday it just stopped working for some reason. No code changes at all. It seems to be timing out while logging in.
private string DocLogin()
{
ErrMsg = string.Empty;
string _accountId = null;
try
{
var _apiClient = new ApiClient(DocuSignURL);
Config = new Configuration(_apiClient);
// configure 'X-DocuSign-Authentication' header
string _authHeader = "{\"Username\":\"" + Username + "\", \"Password\":\"" + Password + "\", \"IntegratorKey\":\"" + IntegratorKey + "\"}";
Config.AddDefaultHeader("X-DocuSign-Authentication", _authHeader);
// we will retrieve this from the login API call
AuthenticationApi _authApi = new AuthenticationApi(Config);
LoginInformation _loginInfo = _authApi.Login();
_accountId = _loginInfo.LoginAccounts[0].AccountId;
}
catch (Exception ex)
{
_accountId = null;
ErrMsg = ex.Message;
}
return _accountId;
}
As soon as it hits the line "_authApi.Login()" it hangs up then throws the error, "Error calling Login: The operation has timed out".
Any ideas? Remember there has been no code changes and was working fine. I thought about corporate firewall but I tried it outside of the firewall with the same results.