1

我已经为我的 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 缓存对我没有任何作用。

4

1 回答 1

0

您的版本与您尝试使用的 ServiceStack 版本与构建ServiceStack.Webhooks.OrmLite NuGet 包的 ServiceStack 版本不匹配。

您应该向jezzsantos/ServiceStack.Webhooks GitHub 项目提出问题,以发布针对最新 v5.9 的新版本。

否则,您将需要降级以使用构建 NuGet 包的 ServiceStack v5.5.0

于 2020-06-15T13:38:57.980 回答