本帖最后由 94393589 于 2020-11-30 17:01 编辑
在做第三方用户同步服务时,报这种错误,不知道有没有人遇到过.连接的是MYSQL数据库,增加了一个winform程序测试,客户端取数据是没问题的
{ "ClassName": "System.NotSupportedException", "Message": "No data is available for encoding 1252. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.", "Data": null, "InnerException": null, "HelpURL": null, "StackTraceString": " at System.Text.Encoding.GetEncoding(Int32 codepage) at MySql.Data.MySqlClient.Driver..ctor(MySqlConnectionStringBuilder settings) at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings) at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection() at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver() at MySql.Data.MySqlClient.MySqlPool.GetConnection() at MySql.Data.MySqlClient.MySqlConnection.Open() at Maticsoft.DBUtility.DbHelperMySQL.Query(String SQLString) in E:\\3.九明珠\\葡萄城活字格 相关\\插件\\同步用户\\CopyUserFromJmzDB\\CopyUserFromJmzDB\\DbHelperMySQL.cs:line 118 at CopyUserFromJmzDB.UserinfoServices.GetUser(UserInformations userInfo) in E:\\3.九明珠\\葡萄城活字格 相关\\插件\\同步用户\\CopyUserFromJmzDB\\CopyUserFromJmzDB\\UserinfoServices.cs:line 18 at CopyUserFromJmzDB.CopyUserFromServices.get_UserInformations() in E:\\3.九明珠\\葡萄城活字格 相关\\插件\\同步用户\\CopyUserFromJmzDB\\CopyUserFromJmzDB\\CopyUserFromServices.cs:line 40 at Forguncy.UserService2.Controllers.SecurityProviderController.<>c.<SyncUserFromSecurityProvider>b__17_0()", "RemoteStackTraceString": null, "RemoteStackIndex": 0, "ExceptionMethod": null, "HResult": -2146233067, "Source": "System.Private.CoreLib", "WatsonBuckets": null}CurrentMethodName: SyncUserFromSecurityProvider
|