Mike Taulty's Blog
Bits and Bytes from Microsoft UK
Azure Mobile Services: Pre-Release .NET Client Libraries with WP7.5 and PCL Support

Blogs

Mike Taulty's Blog

Elsewhere

Archives

If you’ve been along to one of my talks on Azure Mobile Services you’d have noticed that I’d been fairly careful in talking about Windows 8 and Windows Phone 8 support in terms of the .NET class libraries for development on the client side which make working with a Mobile Service easier than having to construct HTTP requests manually in code.

That’s because there wasn’t support for Windows Phone other than the new version 8.

That’s starting to change – the post over here points to new support for Windows Phone 7.5 and also portable class libraries which is great (hopefully!) in helping folks who want to build one abstraction over their service and then use it from different calling environments.

As an aside, it’s worth pointing out that iOS and Android class libraries are already available and that JavaScript libraries are also there for working from a Windows 8 application that’s written in JS.


Posted Wed, Mar 13 2013 11:37 PM by mtaulty

Comments

Anonymous wrote re: Azure Mobile Services: Pre-Release .NET Client Libraries with WP7.5 and PCL Support
on Wed, Apr 17 2013 8:01 PM

Hi

You don't have a "Starter" Project in using this?

I have trouble to have it run, so I must miss something.

In my solution I have 3 Projects

One WP7.5

One Windows Store

One Portable Class Library

I install the WindowsAzure Mobile service in the Portable Class Library by using NuGet.

The other 2 Project have an Reference to my Portable Class Library

In the Portable Class Library I have created an testmethode who should have som Azure actions.

This methode look likes:

public class TestAzureManager

{

public static MobileServiceClient MobileService = new MobileServiceClient(

mytestapp.azure-mobile.net/,"mycode"

);

private IMobileServiceTable<TestAzureTable> testAzureTable = MobileService.GetTable<TestAzureTable>();

public async void InsertSomeData()

{

var testAzureItem = new TestAzureTable {Id = 0, Text = "Test"};

await testAzureTable.InsertAsync(testAzureItem)

}

When I Call InsertSomeData methode from my Windows Phone 7.5 Project I got the following error,

when reaching private IMobileServiceTable<TestAzureTable> testAzureTable = MobileService.GetTable<TestAzureTable>();:

“A Windows Azure Mobile Services assembly for the current platform was not found. Ensure that the current project references both Microsoft.WindowsAzure.Mobile and the following platform-specific assembly: Microsoft.WindowsAzure.Mobile.Ext.”

What do I wrong?

Hope someone can help me.