eSignature API Recipe that demonstrates the use of DocuSign Connect (webhook) functionality in C#. For additional recipes see: https://github.com/docusign/docusign-rest-recipes
Trying this out against https://admindemo.docusign.com/ using both my personal login credentials as "docusignApiUsername" and "docusignApiUsername" and the Admin > Integrations > API and Keys > Integration Key. But getting these errors.
Server Error in '/' Application.
Error calling Login: {
"errorCode": "USER_AUTHENTICATION_FAILED",
"message": "One or both of Username and Password are invalid."
}
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: DocuSign.eSign.Client.ApiException: Error calling Login: {
"errorCode": "USER_AUTHENTICATION_FAILED",
"message": "One or both of Username and Password are invalid."
}
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[[ApiException: Error calling Login: {
"errorCode": "USER_AUTHENTICATION_FAILED",
"message": "One or both of Username and Password are invalid."
}]]
DocuSign.eSign.Api.AuthenticationApi.LoginWithHttpInfo(LoginOptions options) +1487
DocuSign.eSign.Api.AuthenticationApi.Login(LoginOptions options) +56
Webhook.Helpers.WebhookLibrary.GetAccountId() in C:\Users\ewmccarty.WALKERTX\OneDrive - Walker Engineering, Inc\Repo\recipe-010-webhook-csharp\Webhook\Helpers\WebhookLibrary.cs:37
Webhook.Helpers.WebhookLibrary.Init() in C:\Users\ewmccarty.WALKERTX\OneDrive - Walker Engineering, Inc\Repo\recipe-010-webhook-csharp\Webhook\Helpers\WebhookLibrary.cs:21
Webhook.MvcApplication.Application_Start() in C:\Users\ewmccarty.WALKERTX\OneDrive - Walker Engineering, Inc\Repo\recipe-010-webhook-csharp\Webhook\Global.asax.cs:22
[[HttpException (0x80004005): Error calling Login: {
"errorCode": "USER_AUTHENTICATION_FAILED",
"message": "One or both of Username and Password are invalid."
}]]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +10093909
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[[]] handlers) +118
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[[]] handlers, IntPtr appContext, HttpContext context) +173
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +218
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296
[[HttpException (0x80004005): Error calling Login: {
"errorCode": "USER_AUTHENTICATION_FAILED",
"message": "One or both of Username and Password are invalid."
}]]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +10075108
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +95
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3282.0
Where am I going wrong?
Trying this out against https://admindemo.docusign.com/ using both my personal login credentials as "docusignApiUsername" and "docusignApiUsername" and the Admin > Integrations > API and Keys > Integration Key. But getting these errors.
Server Error in '/' Application. Error calling Login: { "errorCode": "USER_AUTHENTICATION_FAILED", "message": "One or both of Username and Password are invalid." } Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: DocuSign.eSign.Client.ApiException: Error calling Login: { "errorCode": "USER_AUTHENTICATION_FAILED", "message": "One or both of Username and Password are invalid." }
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[[ApiException: Error calling Login: { "errorCode": "USER_AUTHENTICATION_FAILED", "message": "One or both of Username and Password are invalid." }]] DocuSign.eSign.Api.AuthenticationApi.LoginWithHttpInfo(LoginOptions options) +1487 DocuSign.eSign.Api.AuthenticationApi.Login(LoginOptions options) +56 Webhook.Helpers.WebhookLibrary.GetAccountId() in C:\Users\ewmccarty.WALKERTX\OneDrive - Walker Engineering, Inc\Repo\recipe-010-webhook-csharp\Webhook\Helpers\WebhookLibrary.cs:37 Webhook.Helpers.WebhookLibrary.Init() in C:\Users\ewmccarty.WALKERTX\OneDrive - Walker Engineering, Inc\Repo\recipe-010-webhook-csharp\Webhook\Helpers\WebhookLibrary.cs:21 Webhook.MvcApplication.Application_Start() in C:\Users\ewmccarty.WALKERTX\OneDrive - Walker Engineering, Inc\Repo\recipe-010-webhook-csharp\Webhook\Global.asax.cs:22
[[HttpException (0x80004005): Error calling Login: { "errorCode": "USER_AUTHENTICATION_FAILED", "message": "One or both of Username and Password are invalid." }]] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +10093909 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[[]] handlers) +118 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[[]] handlers, IntPtr appContext, HttpContext context) +173 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +218 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296
[[HttpException (0x80004005): Error calling Login: { "errorCode": "USER_AUTHENTICATION_FAILED", "message": "One or both of Username and Password are invalid." }]] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +10075108 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +95 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3282.0