在Windows Phone后台代理中读取Azure SQL中的内容

在Windows Phone后台代理中读取Azure SQL中的内容,azure,windows-phone-8,azure-sql-database,azure-mobile-services,Azure,Windows Phone 8,Azure Sql Database,Azure Mobile Services,我正在编写Windows Phone 8应用程序,从Windows Phone 8后台代理访问Azure移动服务数据库时遇到问题 我使用的代码是: public static MobileServiceClient MobileService = new MobileServiceClient("https://name.azure-mobile.net/","secret!"); ... await ScheduledAgent .MobileService

我正在编写Windows Phone 8应用程序,从Windows Phone 8后台代理访问Azure移动服务数据库时遇到问题

我使用的代码是:

public static MobileServiceClient MobileService = new MobileServiceClient("https://name.azure-mobile.net/","secret!");
...
await ScheduledAgent
                 .MobileService
                 .GetTable<Element>()
                 .Where(e =>
                        e.First == parameters[1]
                        && e.Next == parameters[2]
                        && e.Other == parameters[3]
                        && e.Last == parameters[4])
                 .Take(1)
                 .ToListAsync());
公共静态MobileServiceClient MobileService=新的MobileServiceClient(“https://name.azure-mobile.net/“,”秘密!);
...
等待时间表
.移动服务
.GetTable()
。其中(e=>
e、 First==参数[1]
&&e.下一步==参数[2]
&&e.其他==参数[3]
&&e.Last==参数[4])
.采取(1)
.ToListAsync());
当我在包含代码的行上设置断点时,调试器停止,但在跳过步骤(F10)后,Visual Studio将调试器从后台代理(应用程序仍在emulator上工作)分离,所以我无法捕获异常

有没有可能从那里访问它


亲切的问候

访问Azure移动服务时,WP8库存在什么问题?可以在后台任务中使用移动服务。描述你的问题。只是添加了一些细节。