将 RavenDB 客户端库从 2.5.2666 升级到 2.5.2851 后出现此错误
Method 'DeleteByIndexAsync' in type 'Raven.Client.Embedded.EmbeddedAsyncServerClient' from assembly 'Raven.Client.Embedded, Version=2.5.0.0, Culture=neutral, PublicKeyToken=37f41c7f99471593' does not have an implementation.
似乎从堆栈跟踪中中断了第 3065 行,但我不确定为什么:
Line 3064: var concreteTypes = from type in types
Line 3065: where type.IsClass() && (type.IsAbstract() == false) && (type != this.GetType() && (type.DeclaringType != this.GetType()) && (!type.IsGenericTypeDefinition()))
Line 3066: select type;
TinyIoC 设置为自动扫描所有依赖项:
protected override void ConfigureApplicationContainer(TinyIoCContainer container)
{
base.ConfigureApplicationContainer(container);
RavenDbConfiguration.ConfigureStore(container);
AutoMapperConfiguration.Bootstrap(container);
}
如果我把调用 base 的那条线去掉,那么应用程序会再次开始工作,但后来在我没有注册特定依赖项的地方摔倒了,所以我宁愿让它继续自动扫描,然后找到这个错误的底部.
有任何想法吗?