azure - Azure MobileServiceClient 可以 InsertAsync 但不能 ReadAsync
问题描述
我可以创建一个 MobileServiceClient 和GetTable<Model>()
to 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 项目运行时。运行应用程序时读取有效
解决方案
我有同样的问题。
根据GitHub 问题:
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 版后一切正常。请尝试制作相同的,希望它会帮助你
推荐阅读
- google-analytics - 是否可以将特定 SKU 购买与特定活动联系起来?
- python - 使用不同的 id 更新所有字典值
- python-3.x - Python:根据另一列上的数据在 csv 文件中创建新列和行
- sql - 递归 CTE 的滞后
- javascript - 什么可能以这种方式“干扰”DataTables AJAX 滚动条?
- python - 在 Python 中使用 Lambda 表达式进行情感分析
- javascript - 多行匹配的正则表达式
- python - xlworkbook 类的静态方法出现 EOF 错误
- android - 检测到 nfc 贴纸时启动 Web 请求
- wordpress - 如何使用 301 重定向的重写规则删除 URL 中的所有 ? 源行代码