【问题标题】:Xamarin MySQLite - Failed to load errors from the local storeXamarin MySQLite - 无法从本地存储加载错误
【发布时间】:2017-05-31 03:27:05
【问题描述】:

我有一个如下所示的本地数据库:

我还有一个使用 Azure 的云数据库,如下所示:

每当我使用我的函数await client.SyncContext.PushAsync(); 将我的本地数据库推送到云端时,我都会收到此错误:

Failed to read errors from the local store. ---> Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: T. Path '', line 0, position 0.

经过一番研究,我发现这通常是由于没有正确设置您的 MySQLite 数据库,但看起来我的数据库与我的云数据库相同。

非常感谢任何建议

【问题讨论】:

    标签: c# sqlite azure xamarin offline-caching


    【解决方案1】:

    如错误所示:
    Failed to read errors from the local store. ---> Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: T

    请查看表格中每个列的数据类型。您的每个列的数据类型必须与 Type T 相同

    【讨论】:

    • 感谢@Ravindra Kumar 的回答,看来原因是因为getTable() 方法指向Azure 门户中的/tables 目录,使用Easy Tables 软件时可以创建一个数据库,但我不是。你知道如何将我的getTable 方法指向通过 ClearDB 上的 Azure 门户托管的 MySQL 数据库吗?谢谢!
    猜你喜欢
    • 2014-08-17
    • 1970-01-01
    • 1970-01-01
    • 2022-10-19
    • 2016-02-04
    • 1970-01-01
    • 2012-05-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多