Orchard和Visual Studio 2012命令行错误

本文关键字:命令行 错误 2012 Studio Visual Orchard | 更新日期: 2023-09-27 18:35:38

我试图在果园命令行中创建一个新主题,但遇到了一个错误。提前谢谢。

果园>编码源主题CWST血红素

执行命令"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)'.

Orchard和Visual Studio 2012命令行错误

尝试:

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

我发现这经常会清除很多错误,就像Orchard一样,反复关闭它。