Thanks for your response. The first exception that is thrown is an AggregateException, with the inner exception being the WebException above.
stack:
[External Code]
Tweetinvi.WebLogic.DLL!Tweetinvi.WebLogic.WebHelper.GetWebResponse(System.Net.WebRequest webRequest) Line 34 C#
Tweetinvi.WebLogic.DLL!Tweetinvi.WebLogic.WebRequestExecutor.ExecuteWebRequest(System.Net.HttpWebRequest httpWebRequest) Line 36 C#
Tweetinvi.WebLogic.DLL!Tweetinvi.WebLogic.TwitterRequester.ExecuteQuery(string url, Tweetinvi.Core.Enum.HttpMethod httpMethod, System.Collections.Generic.IEnumerable<Tweetinvi.Core.Interfaces.oAuth.IOAuthQueryParameter> headers) Line 24 C#
Tweetinvi.Credentials.DLL!Tweetinvi.Credentials.TwitterAccessor.ExecuteQuery(string query, Tweetinvi.Core.Enum.HttpMethod method) Line 298 C#
Tweetinvi.Credentials.DLL!Tweetinvi.Credentials.TwitterAccessor.ExecuteGETQuery<System.Collections.Generic.IEnumerable<Tweetinvi.Core.Interfaces.DTO.ITweetDTO>>(string query, Newtonsoft.Json.JsonConverter[] converters) Line 98 C#
Tweetinvi.Controllers.DLL!Tweetinvi.Controllers.Timeline.TimelineQueryExecutor.GetUserTimeline(Tweetinvi.Core.Interfaces.Models.Parameters.IUserTimelineRequestParameters timelineRequestParameters) Line 44 C#
Tweetinvi.Controllers.DLL!Tweetinvi.Controllers.Timeline.TimelineController.GetUserTimeline(Tweetinvi.Core.Interfaces.Models.Parameters.IUserTimelineRequestParameters timelineRequestParameters) Line 80 C#
Tweetinvi.Controllers.DLL!Tweetinvi.Controllers.Timeline.TimelineController.GetUserTimeline(Tweetinvi.Core.Interfaces.Models.IUserIdentifier userIdentifier, int maximumNumberOfTweets) Line 63 C#
Tweetinvi.Logic.DLL!Tweetinvi.Logic.User.GetUserTimeline(int maximumNumberOfTweets) Line 330 C#
Tweetinvi.Logic.DLL!Tweetinvi.Logic.User.GetUserTimelineAsync.AnonymousMethod__1e() Line 399 C#
[External Code]
When it gets back to my code:
The output from the Output window:__
GET : https://api.twitter.com/1.1/users/show.json?screen_name=@XXXXXXXX
Header OAuth oauth_nonce="1234567",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1234567890",oauth_version="1.0",oauth_signature=XXXXXXXXXXXXXXXXXXXXXXXXX"
A first chance exception of type 'System.AggregateException' occurred in mscorlib.ni.dll
A first chance exception of type 'Tweetinvi.Logic.Exceptions.TwitterException' occurred in Tweetinvi.WebLogic.DLL
---- DEBUG ASSERTION FAILED ----
---- Assert Short Message ----
---- Assert Long Message ----
stack:
[External Code]
Tweetinvi.WebLogic.DLL!Tweetinvi.WebLogic.WebHelper.GetWebResponse(System.Net.WebRequest webRequest) Line 34 C#
Tweetinvi.WebLogic.DLL!Tweetinvi.WebLogic.WebRequestExecutor.ExecuteWebRequest(System.Net.HttpWebRequest httpWebRequest) Line 36 C#
Tweetinvi.WebLogic.DLL!Tweetinvi.WebLogic.TwitterRequester.ExecuteQuery(string url, Tweetinvi.Core.Enum.HttpMethod httpMethod, System.Collections.Generic.IEnumerable<Tweetinvi.Core.Interfaces.oAuth.IOAuthQueryParameter> headers) Line 24 C#
Tweetinvi.Credentials.DLL!Tweetinvi.Credentials.TwitterAccessor.ExecuteQuery(string query, Tweetinvi.Core.Enum.HttpMethod method) Line 298 C#
Tweetinvi.Credentials.DLL!Tweetinvi.Credentials.TwitterAccessor.ExecuteGETQuery<System.Collections.Generic.IEnumerable<Tweetinvi.Core.Interfaces.DTO.ITweetDTO>>(string query, Newtonsoft.Json.JsonConverter[] converters) Line 98 C#
Tweetinvi.Controllers.DLL!Tweetinvi.Controllers.Timeline.TimelineQueryExecutor.GetUserTimeline(Tweetinvi.Core.Interfaces.Models.Parameters.IUserTimelineRequestParameters timelineRequestParameters) Line 44 C#
Tweetinvi.Controllers.DLL!Tweetinvi.Controllers.Timeline.TimelineController.GetUserTimeline(Tweetinvi.Core.Interfaces.Models.Parameters.IUserTimelineRequestParameters timelineRequestParameters) Line 80 C#
Tweetinvi.Controllers.DLL!Tweetinvi.Controllers.Timeline.TimelineController.GetUserTimeline(Tweetinvi.Core.Interfaces.Models.IUserIdentifier userIdentifier, int maximumNumberOfTweets) Line 63 C#
Tweetinvi.Logic.DLL!Tweetinvi.Logic.User.GetUserTimeline(int maximumNumberOfTweets) Line 330 C#
Tweetinvi.Logic.DLL!Tweetinvi.Logic.User.GetUserTimelineAsync.AnonymousMethod__1e() Line 399 C#
[External Code]
When it gets back to my code:
var timeline = await handle.User.GetUserTimelineAsync(10);
if (timeline == null)
{
var lastException = ExceptionHandler.GetLastException();
}
__I get a return value of null and the lastException is also null.The output from the Output window:__
GET : https://api.twitter.com/1.1/users/show.json?screen_name=@XXXXXXXX
Header OAuth oauth_nonce="1234567",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1234567890",oauth_version="1.0",oauth_signature=XXXXXXXXXXXXXXXXXXXXXXXXX"
A first chance exception of type 'System.AggregateException' occurred in mscorlib.ni.dll
A first chance exception of type 'Tweetinvi.Logic.Exceptions.TwitterException' occurred in Tweetinvi.WebLogic.DLL
---- DEBUG ASSERTION FAILED ----
---- Assert Short Message ----
---- Assert Long Message ----
at <LoadTwitterHandle>d__c.MoveNext()
at MoveNextRunner.InvokeMoveNext(Object stateMachine)
at ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at MoveNextRunner.Run()
at <>c__DisplayClass1.<OutputWaitEtwEvents>b__0()
at ContinuationWrapper.Invoke()
at AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
at Task.FinishContinuations()
at Task.FinishStageThree()
at Task`1.TrySetResult(TResult result)
at AsyncTaskMethodBuilder`1.SetResult(TResult result)
at <GetUserFromScreenName>d__14.MoveNext()
at MoveNextRunner.InvokeMoveNext(Object stateMachine)
at ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at MoveNextRunner.Run()
at TaskAwaiter.RunNoException(Action continuation)
at <>c__DisplayClassa.<OnCompletedInternal>b__4(Task param0)
at ContinuationTaskFromTask.InnerInvoke()
at Task.Execute()
at Task.ExecutionContextCallback(Object obj)
at ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
at Task.ExecuteEntry(Boolean bPreventDoubleExecution)
at ThreadPoolTaskScheduler.TryExecuteTaskInline(Task task, Boolean taskWasPreviouslyQueued)
at TaskScheduler.TryRunInline(Task task, Boolean taskWasPreviouslyQueued)
at TaskContinuation.InlineIfPossibleOrElseQueue(Task task, Boolean needsProtection)
at StandardTaskContinuation.Run(Task completedTask, Boolean bCanInlineContinuationTask)
at Task.FinishContinuations()
at Task.FinishStageThree()
at Task`1.TrySetResult(TResult result)
at AsyncTaskMethodBuilder`1.SetResult(TResult result)
at <ExecuteTaskAsync>d__a`1.MoveNext()
at MoveNextRunner.InvokeMoveNext(Object stateMachine)
at ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at MoveNextRunner.Run()
at TaskAwaiter.RunNoException(Action continuation)
at <>c__DisplayClassa.<OnCompletedInternal>b__4(Task param0)
at ContinuationTaskFromTask.InnerInvoke()
at Task.Execute()
at Task.ExecutionContextCallback(Object obj)
at ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
at Task.ExecuteEntry(Boolean bPreventDoubleExecution)
at ThreadPoolTaskScheduler.TryExecuteTaskInline(Task task, Boolean taskWasPreviouslyQueued)
at TaskScheduler.TryRunInline(Task task, Boolean taskWasPreviouslyQueued)
at TaskContinuation.InlineIfPossibleOrElseQueue(Task task, Boolean needsProtection)
at StandardTaskContinuation.Run(Task completedTask, Boolean bCanInlineContinuationTask)
at Task.FinishContinuations()
at Task.FinishStageThree()
at Task`1.TrySetResult(TResult result)
at AsyncTaskMethodBuilder`1.SetResult(TResult result)
at <ExecuteTaskAsync>d__3`1.MoveNext()
at MoveNextRunner.InvokeMoveNext(Object stateMachine)
at ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at MoveNextRunner.Run()
at TaskAwaiter.RunNoException(Action continuation)
at <>c__DisplayClassa.<OnCompletedInternal>b__4(Task param0)
at ContinuationTaskFromTask.InnerInvoke()
at Task.Execute()
at Task.ExecutionContextCallback(Object obj)
at ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
at Task.ExecuteEntry(Boolean bPreventDoubleExecution)
at ThreadPoolTaskScheduler.TryExecuteTaskInline(Task task, Boolean taskWasPreviouslyQueued)
at TaskScheduler.TryRunInline(Task task, Boolean taskWasPreviouslyQueued)
at TaskContinuation.InlineIfPossibleOrElseQueue(Task task, Boolean needsProtection)
at StandardTaskContinuation.Run(Task completedTask, Boolean bCanInlineContinuationTask)
at Task.FinishContinuations()
at Task.FinishStageThree()
at Task.FinishStageTwo()
at Task.Finish(Boolean bUserDelegateExecuted)
at Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
at Task.ExecuteEntry(Boolean bPreventDoubleExecution)
at Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at ThreadPoolWorkQueue.Dispatch()
at _ThreadPoolWaitCallback.PerformWaitCallback()
Any help is appreciated.