Failed to create new MobileServiceClient in existing Xamarin Forms application

I'm just trying to add functionality MobileServiceClient

to an existing Xamarin Forms app and paint a brick wall. As soon as I try to instantiate the class MobileServiceClient

, I get an exception:

Method 'System.Net.Http.HttpClientHandler.set_AutomaticDecompression' was not found.

I've tried everything I can find on the search schedule including this one , but it didn't help. Actually I've completely uninstalled and reinstalled

Microsoft.Azure.Mobile.Client
Microsoft.Azure.Mobile.Client.Sqlitestore
Microsoft.BCL
Microsoft. BCL.build
Microsoft.Net.Http

      

From PCL and platform projects and reinstall them one by one, making sure BCL.Build

both Microsoft.Net.Http

were the last but one and the last respectively.

In my PCL, I see in the package.config:

<package id="Microsoft.Net.Http" version="2.2.29" targetFramework="portable45-net45+win8+wp8+wpa81" />

      

And in Android, for example:

<package id="Microsoft.Net.Http" version="2.2.29" targetFramework="monoandroid60" />

      

Does anyone know if there is something else that I can try, or if I need to install certain versions?

I should also add that I downloaded the same / quickstart app from the Azure portal and it works fine, so its project is specific.

Looking at nodes TargetFrameWorkVerion

and TargetFrameworkProfile

in PCL csprj, both working draft and non-working project list

<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkProfile>Profile259</TargetFrameworkProfile>

      

thank

+3


source to share





All Articles