>我已经为我的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}]rnSystem.MissingMethodException: Method not found: 'Int32 ServiceStack.OrmLite.OrmLiteWriteExpressionsApi.Delete(System.Data.IDbConnection, System.Linq.Expressions.Expression`1<System.Func`2<!!0,Boolean>>)'.rn at ServiceStack.Webhooks.OrmLite.OrmLiteSubscriptionStore.Delete(String subscriptionId)rn at ServiceStack.Webhooks.ServiceInterface.SubscriptionService.Delete(DeleteSubscription request)rn at lambda_method(Closure , Object , Object )rn at ServiceStack.Host.ServiceRunner`1.<ExecuteAsync>d__15.MoveNext() in C:\BuildAgent\work\3481147c480f4a2f\src\ServiceStack\Host\ServiceRunner.cs:line 133rn",
"errors": []
}
}
公开尝试了所有可用的东西,包括版本匹配清除本地 nuget 缓存对我没有任何用处。
您的版本与您尝试使用的 ServiceStack 版本与构建 ServiceStack.Webhooks.OrmLite NuGet 包时使用的 ServiceStack 版本不匹配。
您应该向jezzsantos/ServiceStack.Webhooks GitHub项目提出问题,以发布针对最新v5.9的新版本。
否则,需要降级才能使用 NuGet 包时使用的服务堆栈v5.5.0。