microsoft / Dynamics-AX-Integration

Dynamics AX Integration samples and demos.
287 stars 356 forks source link

NullReferenceException was unhandled by user code (DefaultDataFlowNetwork.cs line75) #42

Open chiragmshah opened 6 years ago

chiragmshah commented 6 years ago

System.NullReferenceException was unhandled by user code HResult=-2147467261 Message=Object reference not set to an instance of an object. Source=RecurringIntegrationApp StackTrace: at RecurringIntegrationApp.AuthenticationHelper.get_AuthorizationHeader() in C:\D365O\Projects\Dynamics-AX-Integration-master\DIXFSamples\RecurringIntegrationApp\Helpers\AuthenticationHelper.cs:line 25 at RecurringIntegrationApp.AuthenticationHelper.GetValidAuthenticationHeader() in C:\D365O\Projects\Dynamics-AX-Integration-master\DIXFSamples\RecurringIntegrationApp\Helpers\AuthenticationHelper.cs:line 63 at RecurringIntegrationApp.HttpClientHelper.d1.MoveNext() in C:\D365O\Projects\Dynamics-AX-Integration-master\DIXFSamples\RecurringIntegrationApp\Helpers\HttpClientHelper.cs:line 75 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at RecurringIntegrationApp.DefaultDataFlowNetwork.d26.MoveNext() in C:\D365O\Projects\Dynamics-AX-Integration-master\DIXFSamples\RecurringIntegrationApp\Runtime\DefaultDataFlowNetwork.cs:line 312 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at RecurringIntegrationApp.DefaultDataFlowNetwork.d24.MoveNext() in C:\D365O\Projects\Dynamics-AX-Integration-master\DIXFSamples\RecurringIntegrationApp\Runtime\DefaultDataFlowNetwork.cs:line 187 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at RecurringIntegrationApp.DefaultDataFlowNetwork.<<-ctor>b17_0>d.MoveNext() in C:\D365O\Projects\Dynamics-AX-Integration-master\DIXFSamples\RecurringIntegrationApp\Runtime\DefaultDataFlowNetwork.cs:line 75 InnerException: