Azure MobileServiceClient可以插入而不是ReadAsync

时间:2018-12-07 14:51:40

标签: azure xamarin azure-mobile-services

我可以创建MobileServiceClient和GetTable<Model>()InsertAsync,并查看如何将模型插入Azure的Easy Table表中。但是当我从表中ReadAsync()时,出现以下错误:

Microsoft.WindowsAzure.MobileSerices.MobileServiceInvalidOperation: The server did not provide a response with the expected content.

这是我mobileServiceClient.GetTable<Model>.ReadAsync()

可能是什么问题?

这是在没有Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init();调用的情况下从MsTest项目运行的。读取在运行应用程序时有效

1 个答案:

答案 0 :(得分:1)

我遇到了同样的问题。

根据GitHub Issue

As @elamalani pointed out above, we don't support .Net Core 2.1 in the SDK today. Unfortunately, we don't have a workaround today and like Ela said, the we don't have an ETA for a new release or other SDK to use for .Net Core 2.1 compatibility yet, so your only workaround is to stick with .Net Core 2.0 for now. 而且我也有SDK版本2.1

SDK更改为2.0版后,一切正常。请尝试同样做,希望对您有帮助