0
我试图使用Azure移动服务和Xamarin。我遵循官方教程的所有说明,为应用程序创建了Azure后端,并为Azure的Xamarin.Forms下载了示例快速启动应用程序。 有代码TodoItemManager.cs
:MobileServiceInvalidOperationException抛出Xamarin.WindowsPhone 8.1项目
public async Task<ObservableCollection<TodoItem>> GetTodoItemsAsync(bool syncItems = false)
{
try
{
IEnumerable<TodoItem> items = await todoTable
.Where(todoItem => !todoItem.Done)
.ToEnumerableAsync();
return new ObservableCollection<TodoItem>(items);
}
catch (MobileServiceInvalidOperationException msioe)
{
Debug.WriteLine(@"Invalid sync operation: {0}", msioe.Message);
}
catch (Exception e)
{
Debug.WriteLine(@"Sync error: {0}", e.Message);
}
return null;
}
和我一起消息 “Invalid sync operation: The request could not be completed. (Not Found)
” 得到MobileServiceInvalidOperationException
。
我已经在UWP应用上测试过Azure Backend,它工作正常。所以看起来WP8.1项目存在问题。任何人都可以帮助解决这个问题吗?