Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Error when calling ToListAsync() method of Windows Azure Mobile service using mvvmcross in Android

$
0
0

I am building an app with AzureMobile Services in mvvmcross when I call ToListAsync() method for retrieving data from server in Windows Phone 8 it works fine but there is an error in Xamarin.Android. Any one suggest me to resolve the issue.

Here is a full error stack

mvx:Warning: 39.64 Exception masked AggregateException: 12-02 14:06:53.317 I/mono-stdout( 2032): mvx:Warning: 39.64 Exception masked AggregateException: at System.Threading.Tasks.Task1[System.Collections.Generic.List1[EmployeeDirectoryCross.Core.Models.Employee]].get_Result () [0x00000] in :0 12-02 14:06:53.326 I/mono-stdout( 2032): at System.Threading.Tasks.Task1[System.Collections.Generic.List1[EmployeeDirectoryCross.Core.Models.Employee]].get_Result () [0x00000] in :0 12-02 14:06:53.335 I/mono-stdout( 2032): at EmployeeDirectoryCross.Core.ViewModels.EmployeeListViewModel+<>c__DisplayClass2.b__1 () [0x00001] in e:\Study\Xamarin\XamrinSamples\EmployeeDirectoryCross\EmployeeDirectoryCross.Core\ViewModels\EmployeeListViewModel.cs:54 12-02 14:06:53.335 D/Mono ( 2032): Unloading image System.dll [0x2b365118]. 12-02 14:06:53.335 D/Mono ( 2032): Image addref System[0x2b354bf8] -> System.dll[0x2a6189d8]: 18 at EmployeeDirectoryCross.Core.ViewModels.EmployeeListViewModel+<>c__DisplayClass2.b__1 () [0x00001] in e:\Study\Xamarin\XamrinSamples\EmployeeDirectoryCross\EmployeeDirectoryCross.Core\ViewModels\EmployeeListViewModel.cs:54 12-02 14:06:53.355 I/mono-stdout( 2032): at Cirrious.CrossCore.Core.MvxMainThreadDispatcher.ExceptionMaskedAction (System.Action action) [0x00000] in :0

at Cirrious.CrossCore.Core.MvxMainThreadDispatcher.ExceptionMaskedAction (System.Action action) [0x00000] in :0 12-02 14:06:53.355 I/mono-stdout( 2032): InnerException was MobileServiceInvalidOperationException: The server did not provide a response with the expected content. InnerException was MobileServiceInvalidOperationException: The server did not provide a response with the expected content. at Microsoft.WindowsAzure.MobileServices.MobileServiceHttpClient+d__1c.MoveNext () [0x00000] in :0 12-02 14:06:53.355 I/mono-stdout( 2032): at Microsoft.WindowsAzure.MobileServices.MobileServiceHttpClient+d__1c.MoveNext () [0x00000] in :0 --- End of stack trace from previous location where exception was thrown --- 12-02 14:06:53.355 I/mono-stdout( 2032): --- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in :0 12-02 14:06:53.365 I/mono-stdout( 2032): at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in :0 12-02 14:06:53.365 I/mono-stdout( 2032): at System.Runtime.CompilerServices.TaskAwaiter

1[System.Net.Http.HttpResponseMessage].GetResult () [0x00000] in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter
1[System.Net.Http.HttpResponseMessage].GetResult () [0x00000] in :0 12-02 14:06:53.385 I/mono-stdout( 2032): at Microsoft.WindowsAzure.MobileServices.MobileServiceHttpClient+d__4.MoveNext () [0x00000] in :0

Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>