Azure MobileServiceClient 可以 InsertAsync 但不能 ReadAsync

Azure MobileServiceClient can InsertAsync but not ReadAsync

我可以创建一个 MobileServiceClient 和 GetTable<Model>()InsertAsync,然后看看我的模型是如何插入到 Azure 中的 Easy Table table 中的。但是当我从 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 项目的时候。当 运行 应用程序

时读取有效

我遇到了同样的问题。

根据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 版后 一切正常。请尝试制作相同的,希望它会帮助你