我已经为我的 ServiceStack 项目启用了 Webhook,在该项目中我使用 ServiceStack.Webhooks.OrmLite OrmLiteSubscriptionStore 来存储我的订阅,除了删除操作之外一切正常,它给出了以下错误:
{
"responseStatus": {
"errorCode": "MissingMethodException",
"message": "Method not found: 'Int32 ServiceStack.OrmLite.OrmLiteWriteExpressionsApi.Delete(System.Data.IDbConnection, System.Linq.Expressions.Expression`1<System.Func`2<!!0,Boolean>>)'.",
"stackTrace": "[DeleteSubscription: 6/15/2020 12:42:28 PM]:\n[REQUEST: {id:c42c28e2-f432-40d1-b370-49a5a8506035}]\r\nSystem.MissingMethodException: Method not found: 'Int32 ServiceStack.OrmLite.OrmLiteWriteExpressionsApi.Delete(System.Data.IDbConnection, System.Linq.Expressions.Expression`1<System.Func`2<!!0,Boolean>>)'.\r\n at ServiceStack.Webhooks.OrmLite.OrmLiteSubscriptionStore.Delete(String subscriptionId)\r\n at ServiceStack.Webhooks.ServiceInterface.SubscriptionService.Delete(DeleteSubscription request)\r\n at lambda_method(Closure , Object , Object )\r\n at ServiceStack.Host.ServiceRunner`1.<ExecuteAsync>d__15.MoveNext() in C:\\BuildAgent\\work\\3481147c480f4a2f\\src\\ServiceStack\\Host\\ServiceRunner.cs:line 133\r\n",
"errors": []
}
}
尝试了所有可用的公开内容,包括版本匹配清除本地 nuget 缓存对我没有任何作用。