我已经为我的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缓存,对我来说什么都不起作用。
发布于 2020-06-15 21:38:58
您尝试使用的ServiceStack版本与构建ServiceStack.Webhooks.OrmLite NuGet包时使用的ServiceStack版本不匹配。
您应该对jezzsantos/ServiceStack.Webhooks GitHub项目提出一个问题,以发布一个针对最新v5.9的新版本。
否则,您将需要降级以使用构建NuGet包时使用的ServiceStack v5.5.0。
https://stackoverflow.com/questions/62388956
复制相似问题