Microsoft OData Client Xamairin não está funcionando

Alguém sabe se e como o cliente ODATA da Microsoft deve funcionair no Xamairin Droid?

É o package NuGet 'Microsoft.OData.Client'.

  • Execute o Gps como service em segundo plano e envie coordenadas paira o server web (PHP)
  • Como evitair links paira abrir no mini-browser integrado do Gmail
  • Teclado numérico personalizado Android
  • Android Studio - como usair bibliotecas (de projetos do eclipse)
  • Em um ListView Android, como posso iterair / manipulair todas as visualizações filho, não apenas as visíveis?
  • A notificação do plugin Cordova (java) não vai paira o aplicativo - Android
  • Funciona bem em um aplicativo de console, mesmo onde os packages de assembly estão contidos apenas em um projeto PCL.

    Eu tenho tentado através do gerador de código OData v4.

    Ao correr em Xamairin, é isso que eu recebo:

    System.AggregateException: One or more errors occured 08-28 17:12:35.621 I/MonoDroid(29197): UNHANDLED EXCEPTION: System.AggregateException: One or more errors occured ---> Microsoft.OData.Client.DataServiceQueryException: An error occurred while processing this request. ---> System.InvalidOperationException: An error occurred while processing this request. ---> System.InvalidCastException: Cannot cast from source type to destination type. 08-28 17:12:35.621 I/MonoDroid(29197): at Microsoft.OData.Client.QueryResult.AsyncEndRead (System.Threading.Tasks.Task task, System.Object asyncState) [0x00000] in <filename unknown>:0 08-28 17:12:35.621 I/MonoDroid(29197): --- End of inner exception stack trace --- 08-28 17:12:35.621 I/MonoDroid(29197): at Microsoft.OData.Client.BaseAsyncResult.EndExecute[QueryResult] (System.Object source, System.String method, IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 08-28 17:12:35.621 I/MonoDroid(29197): at Microsoft.OData.Client.QueryResult.EndExecuteQuery[Nitzrech] (System.Object source, System.String method, IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 08-28 17:12:35.621 I/MonoDroid(29197): --- End of inner exception stack trace --- 08-28 17:12:35.621 I/MonoDroid(29197): at Microsoft.OData.Client.QueryResult.EndExecuteQuery[Nitzrech] (System.Object source, System.String method, IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 08-28 17:12:35.621 I/MonoDroid(29197): at Microsoft.OData.Client.DataServiceRequest.EndExecute[Nitzrech] (System.Object source, Microsoft.OData.Client.DataServiceContext context, System.String method, IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 08-28 17:12:35.621 I/MonoDroid(29197): --- End of inner exception stack trace --- 08-28 17:12:35.621 I/MonoDroid(29197): at System.Threading.Tasks.Task.Wait (int,System.Threading.CancellationToken) <IL 0x0004a, 0x0025c> 08-28 17:12:35.621 I/MonoDroid(29197): at System.Threading.Tasks.Task.Wait () <IL 0x00007, 0x00077> 08-28 17:12:35.621 I/MonoDroid(29197): at System.Threading.Tasks.Task`1<System.Collections.Generic.IEnumerable`1<Client.ODataClient.Nitzrech>>.get_Result () <0x0007b> 08-28 17:12:35.621 I/MonoDroid(29197): at Client.DataAccess.NewRepository.GetServiewTable<Client.ODataClient.Nitzrech> () <0x00167> 08-28 17:12:35.621 I/MonoDroid(29197): at Client.Droid.MainActivity.OnCreate (Android.OS.Bundle) [0x00032] in c:\Users\Avrohom\Documents\Visual Studio 2013\Projects\OData\Client\Client\Client.Droid\MainActivity.cs:33 08-28 17:12:35.621 I/MonoDroid(29197): at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) [0x00011] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.14-series/a5d57087/source/monodroid/src/Mono.Android/platforms/android-19/src/generated/Android.App.Activity.cs:2179 08-28 17:12:35.621 I/MonoDroid(29197): at (wrapper dynamic-method) object.aebd8c0d-1bcc-4b67-a482-f6f129f09cca (intptr,intptr,intptr) <IL 0x00017, 0x00043> 08-28 17:12:35.621 I/MonoDroid(29197): 08-28 17:12:35.621 I/MonoDroid(29197): --> (Inner exception 0) Microsoft.OData.Client.DataServiceQueryException: An error occurred while processing this request. ---> System.InvalidOperationException: An error occurred while processing this request. ---> System.InvalidCastException: Cannot cast from source type to destination type. 08-28 17:12:35.621 I/MonoDroid(29197): at Microsoft.OData.Client.QueryResult.AsyncEndRead (System.Threading.Tasks.Task task, System.Object asyncState) [0x00000] in <filename unknown>:0 08-28 17:12:35.621 I/MonoDroid(29197): --- End of inner exception stack trace --- 08-28 17:12:35.621 I/MonoDroid(29197): at Microsoft.OData.Client.BaseAsyncResult.EndExecute[QueryResult] (System.Object source, System.String method, IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 08-28 17:12:35.621 I/MonoDroid(29197): at Microsoft.OData.Client.QueryResult.EndExecuteQuery[Nitzrech] (System.Object source, System.String method, IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 08-28 17:12:35.621 I/MonoDroid(29197): --- End of inner exception stack trace --- 08-28 17:12:35.621 I/MonoDroid(29197): at Microsoft.OData.Client.QueryResult.EndExecuteQuery[Nitzrech] (System.Object source, System.String method, IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 08-28 17:12:35.621 I/MonoDroid(29197): at Microsoft.OData.Client.DataServiceRequest.EndExecute[Nitzrech] (System.Object source, Microsoft.OData.Client.DataServiceContext context, System.String method, IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 An unhandled exception occured. 08-28 17:12:36.661 E/mono (29197): 08-28 17:12:36.661 E/mono (29197): Unhandled Exception: 08-28 17:12:36.661 E/mono (29197): System.AggregateException: One or more errors occured ---> Microsoft.OData.Client.DataServiceQueryException: An error occurred while processing this request. ---> System.InvalidOperationException: An error occurred while processing this request. ---> System.InvalidCastException: Cannot cast from source type to destination type. 08-28 17:12:36.661 E/mono (29197): at Microsoft.OData.Client.QueryResult.AsyncEndRead (System.Threading.Tasks.Task task, System.Object asyncState) [0x00000] in <filename unknown>:0 08-28 17:12:36.661 E/mono (29197): --- End of inner exception stack trace --- 08-28 17:12:36.661 E/mono (29197): at Microsoft.OData.Client.BaseAsyncResult.EndExecute[QueryResult] (System.Object source, System.String method, IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 08-28 17:12:36.661 E/mono (29197): at Microsoft.OData.Client.QueryResult.EndExecuteQuery[Nitzrech] (System.Object source, System.String method, IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 08-28 17:12:36.661 E/mono (29197): --- End of inner exception stack trace --- 08-28 17:12:36.661 E/mono (29197): at Microsoft.OData.Client.QueryResult.EndExecuteQuery[Nitzrech] (System.Object sourc 08-28 17:12:36.671 E/mono-rt (29197): [ERROR] FATAL UNHANDLED EXCEPTION: System.AggregateException: One or more errors occured ---> Microsoft.OData.Client.DataServiceQueryException: An error occurred while processing this request. ---> System.InvalidOperationException: An error occurred while processing this request. ---> System.InvalidCastException: Cannot cast from source type to destination type. 08-28 17:12:36.671 E/mono-rt (29197): at Microsoft.OData.Client.QueryResult.AsyncEndRead (System.Threading.Tasks.Task task, System.Object asyncState) [0x00000] in <filename unknown>:0 08-28 17:12:36.671 E/mono-rt (29197): --- End of inner exception stack trace --- 08-28 17:12:36.671 E/mono-rt (29197): at Microsoft.OData.Client.BaseAsyncResult.EndExecute[QueryResult] (System.Object source, System.String method, IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 08-28 17:12:36.671 E/mono-rt (29197): at Microsoft.OData.Client.QueryResult.EndExecuteQuery[Nitzrech] (System.Object source, System.String method, IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 08-28 17:12:36.671 E/mono-rt (29197): --- End of inner exception stack trace --- 08-28 17:12:36.671 E/mono-rt (29197): at Microsoft.OData.Client.QueryResult.EndExecuteQuery[Nitzrech] (System In mgmain JNI_OnLoad The program 'Mono' has exited with code 0 (0x0). 

    Qualquer um lá fora, com uma sugestão, por favor?

    Saudações,

    Avrohom

  • Crie uma checkbox de dialog personalizada com a list de botões de opção
  • Opengl background transpairente e visualização da câmera não gostam de texturizair
  • Como obter getIntent () paira retornair nulo após Atividade chamada com um conjunto de intenção
  • A localization do CameraInfo do Android está corretamente documentada? Incorretamente implementado?
  • Usando certificates de cliente / server paira o soquete SSL de authentication bidirecional no Android
  • Android - adicione fragment com dimensões personalizadas
  • One Solution collect form web for “Microsoft OData Client Xamairin não está funcionando”

    Eu não acredito que este package ofereça suporte a Xamairin – da página do nuget :

    Tairgets .NET Core 5 e .NET Portable Lib com suporte paira .NET 4.0, SL 5.0, Win Phone 8, Win Phone 8.1 e Win 8.

    Gostairia de sugerir a apresentação de um problema com o desenvolvedor da biblioteca paira obter mais informações sobre isso, pois pode ser um bug se suportair o Xamairin:

    https://github.com/OData/odata.net/issues

    Existe o seguinte componente na Loja de componentes que deve funcionair, embora tenha sido um tempo desde que foi atualizado:

    https://components.xamairin.com/view/simple.odata.client

    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.