0

我正在尝试在 orchard 命令行中创建一个新主题,但出现错误。先感谢您。

果园> codegen 主题 CWSTheme

执行命令“codegen 主题 CWSTheme”时出错

None of the constructors found with 'Orchard.Environment.AutofacUtil.DynamicProx
y2.ConstructorFinderWrapper' on type 'Orchard.Security.Authorizer' can be invoke
d with the available services and parameters:
Cannot resolve parameter 'Orchard.Security.IAuthorizationService authorizationSe
rvice' of constructor 'Void .ctor(Orchard.Security.IAuthorizationService, Orchar
d.UI.Notify.INotifier, Orchard.IWorkContextAccessor)'.

Exception Details: Autofac.Core.DependencyResolutionException: None of the const
ructors found with 'Orchard.Environment.AutofacUtil.DynamicProxy2.ConstructorFin
derWrapper' on type 'Orchard.Security.Authorizer' can be invoked with the availa
ble services and parameters:
Cannot resolve parameter 'Orchard.Security.IAuthorizationService authorizationSe
rvice' of constructor 'Void .ctor(Orchard.Security.IAuthorizationService, Orchar
d.UI.Notify.INotifier, Orchard.IWorkContextAccessor)'.
4

1 回答 1

0

尝试:

  • 退出 Orchard 命令行
  • 如果您可以停止网站在您的网络服务器上运行
  • 在 App_Data 中删除依赖项文件夹的内容(这些将重新生成)
  • 再次尝试命令行,希望一切都已修复
  • 如果您需要重新启动站点

我发现这通常会清除很多错误,并且在 Orchard 中相当于将其关闭再打开。

于 2013-10-18T09:47:55.617 回答