问题描述
我有一个自定义模块 Module1.在这个模块中,我引用了另一个自定义模块 Module2.上周一切正常.
I have a custom module, Module1. In this module, I am referencing another custom module, Module2. Everything was working fine last week.
今天早上我重新安装了 Orchard.从那以后,我一直收到这个错误.
I did a fresh re-install of Orchard this morning. Since then, I have been getting this error.
在类型 'Module1' 上找到的带有 'Orchard.Environment.AutofacUtil.DynamicProxy2.ConstructorFinderWrapper' 的构造函数都不能用可用的服务和参数调用:无法解析构造函数 'Void .ctor(...)'.
None of the constructors found with 'Orchard.Environment.AutofacUtil.DynamicProxy2.ConstructorFinderWrapper' on type 'Module1' can be invoked with the available services and parameters: Cannot resolve parameter 'Module2' of constructor 'Void .ctor(...)'.
知道如何解决这个错误吗?
Any idea how to fix this error?
谢谢.
推荐答案
这意味着找不到某个接口的实现.可能发生了几种情况:模块可能无法编译,或者您忘记从 IDependency 派生接口.
That means that an implementation of some interface could not be found. Several thing can have happened: a module may have failed to compile, or you forgot to make an interface derive from IDependency.
这篇关于错误 - 没有找到带有“Orchard.Environment.AutofacUtil.DynamicProxy2.ConstructorFinderWrapper"的构造函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!