我即将使用 Orchard CMS 完成我的第一个站点,当我启用“博客”模块时,我看到了一个错误页面。我希望我能更多地关注它,而不是我关闭它并重新启动我的网站。
现在,我收到 404 错误,我可以访问网站的前端或后端。我不知所措。
我在错误日志中找到了这些,但我真的不知道从哪里开始......
2014-01-01 19:58:09,140 [11] Orchard.Environment.DefaultOrchardHost - 无法启动租户:默认 Autofac.Core.DependencyResolutionException:没有找到带有“Orchard.Environment.AutofacUtil.DynamicProxy2.ConstructorFinderWrapper”的构造函数可以使用可用的服务和参数调用类型“Orchard.Blogs.Routing.ArchiveConstraint”:无法解析构造函数“Void .ctor(Orchard.Autoroute.Services.IPathResolutionService)”的参数“Orchard.Autoroute.Services.IPathResolutionService pathResolutionService” . 在 Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable 1 parameters) in c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Activators\Reflection\ReflectionActivator.cs:line 118
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable
1 parameters) 在 c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Resolving\InstanceLookup.cs:Autofac.Core 的第 79 行.解决。c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Resolving\InstanceLookup.cs 中的 0():c 中 Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func 1 creator) in c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Lifetime\LifetimeScope.cs:line 270
at Autofac.Core.Resolving.InstanceLookup.Execute() in c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Resolving\InstanceLookup.cs:line 64
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable
1 参数)的第 64 行: \Projects\OSS\autofac\Core\Source\Autofac\Core\Resolving\ResolveOperation.cs:c:\Projects\OSS\autofac 中 Autofac.Core.Resolving.InstanceLookup.ResolveComponent(IComponentRegistration registration, IEnumerable 1 parameters) in c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Resolving\InstanceLookup.cs:line 119
at Autofac.Core.Activators.Reflection.AutowiringParameter.<>c__DisplayClass2.<CanSupplyValue>b__0() in c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Activators\Reflection\AutowiringParameter.cs:line 62
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() in c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Activators\Reflection\ConstructorParameterBinding.cs:line 114
at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable
1 parameters) 的第 123 行\Core\Source\Autofac\Core\Activators\Reflection\ReflectionActivator.cs:Autofac.Core.Resolving.InstanceLookup.Activate 的第 122 行(IEnumerable1 parameters) in c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Resolving\InstanceLookup.cs:line 79
at Autofac.Core.Resolving.InstanceLookup.<Execute>b__0() in c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Resolving\InstanceLookup.cs:line 64
at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func
1 个创建者)在 c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Lifetime\LifetimeScope.cs:c:\Projects\OSS\autofac 中 Autofac.Core.Resolving.InstanceLookup.Execute() 的第 270 行\Core\Source\Autofac\Core\Resolving\InstanceLookup.cs:第 64 行 Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable 1 parameters) in c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Resolving\ResolveOperation.cs:line 123
at Autofac.Core.Resolving.InstanceLookup.ResolveComponent(IComponentRegistration registration, IEnumerable
1 parameters) in c:\Projects\OSS\autofac\Core\ Source\Autofac\Core\Resolving\InstanceLookup.cs:第 119 行 Autofac.Features.Collections.CollectionRegistrationSource.<>c _DisplayClass4.<>c_ DisplayClass6.b _1(IComponentRegistration cr) in c:\Projects\OSS\autofac\Core \Source\Autofac\Features\Collections\CollectionRegistrationSource.cs:System.Linq.Enumerable 的第 75 行。WhereSelectArrayIterator2.MoveNext()
at System.Linq.Buffer
1..ctor(IEnumerable 1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable
1 source) at Autofac.Features.Collections.CollectionRegistrationSource.<>c_ DisplayClass4.b _0(IComponentContext c, IEnumerable 1 p) in c:\Projects\OSS\autofac\Core\Source\Autofac\Features\Collections\CollectionRegistrationSource.cs:line 75
at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable
1 parameters) in c:\Projects\OSS\autofac\Core\Source\Autofac\Core \Activators\Delegate\DelegateActivator.cs:1 parameters) in c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Resolving\InstanceLookup.cs:line 79
at Autofac.Core.Resolving.InstanceLookup.Execute() in c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Resolving\InstanceLookup.cs:line 61
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable
在 c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Resolving\ResolveOperation.cs 中 Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable 1 个参数)的第 68 行: c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Registration\ExternalRegistrySource.cs中 Autofac.Core.Resolving.InstanceLookup.ResolveComponent(IComponentRegistration registration, IEnumerable 1 parameters) in c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Resolving\InstanceLookup.cs:line 119
at Autofac.Core.Registration.ExternalRegistrySource.<>c__DisplayClass8.<RegistrationsFor>b__3(IComponentContext c, IEnumerable
1 p) 的第 123 行:Autofac.Core 的第 80 行.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext 上下文,IEnumerable1 parameters) in c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Activators\Delegate\DelegateActivator.cs:line 68
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable
1 个参数)在 c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Resolving\InstanceLookup.cs:c:\Projects\OSS\autofac 中 Autofac.Core.Resolving.InstanceLookup.Execute() 的第 79 行\Core\Source\Autofac\Core\Resolving\InstanceLookup.cs:第 61 行 Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable 1 parameters) in c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Resolving\ResolveOperation.cs:line 123
at Autofac.Core.Resolving.InstanceLookup.ResolveComponent(IComponentRegistration registration, IEnumerable
1 parameters) in c:\Projects\OSS\autofac\Core\ Source\Autofac\Core\Resolving\InstanceLookup.cs:Autofac.Core.Activators.Reflection.AutowiringParameter.<>c_DisplayClass2.b 处的第 119行c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Activators\Reflection\AutowiringParameter.cs 中的 _0():c:\Projects 中 Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() 的第 62 行\OSS\autofac\Core\Source\Autofac\Core\Activators\Reflection\ConstructorParameterBinding.cs:第 114 行 Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable 1 parameters) in c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Activators\Reflection\ReflectionActivator.cs:line 122
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable
1 parameters) in c:\Projects\OSS \autofac\Core\Source\Autofac\Core\Resolving\InstanceLookup.cs:C:\Projects\OSS\autofac\Core\Source\Autofac\Core\Resolving 中 Autofac.Core.Resolving.InstanceLookup.b__0() 的第 79 行\InstanceLookup.cs:Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare 的第 64 行(Guid id,Func1 creator) in c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Lifetime\LifetimeScope.cs:line 270
at Autofac.Core.Resolving.InstanceLookup.Execute() in c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Resolving\InstanceLookup.cs:line 64
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable
1 个参数)在 c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Resolving\ResolveOperation.cs:第 123 行 Autofac.Core.Resolving.InstanceLookup.ResolveComponent(IComponentRegistration registration, IEnumerable 1 parameters) in c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Resolving\InstanceLookup.cs:line 119
at Autofac.Core.Registration.ExternalRegistrySource.<>c__DisplayClass8.<RegistrationsFor>b__3(IComponentContext c, IEnumerable
1 p) in c: \Projects\OSS\autofac\Core\Source\Autofac\Core\Registration\ExternalRegistrySource.cs:Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance 的第 80 行(IComponentContext 上下文,IEnumerable1 parameters) in c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Activators\Delegate\DelegateActivator.cs:line 68
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable
1 个参数)在 c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Resolving\InstanceLookup.cs:c:\Projects\OSS\autofac 中 Autofac.Core.Resolving.InstanceLookup.Execute() 的第 79 行\Core\Source\Autofac\Core\Resolving\InstanceLookup.cs:第 61 行 Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable 1 parameters) in c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Resolving\ResolveOperation.cs:line 123
at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable
1 parameters) in c:\Projects\OSS\autofac\Core\ Source\Autofac\Core\Resolving\ResolveOperation.cs:Autofac.Core.Lifetime.LifetimeScope.ResolveComponent 的第 85 行(IComponentRegistration 注册,IEnumerable1 parameters) in c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Lifetime\LifetimeScope.cs:line 232
at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable
1 个参数,对象和实例)在 c:\Projects\OSS\autofac\Core\Source\Autofac\ResolutionExtensions.cs:第 736 行 Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable 1 parameters) in c:\Projects\OSS\autofac\Core\Source\Autofac\ResolutionExtensions.cs:line 343
at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable
1 parameters) in c:\Projects \OSS\autofac\Core\Source\Autofac\ResolutionExtensions.cs: d:\Builds\OrchardFull\src\Orchard\Environment\ShellBuilders\ShellContextFactory.cs 中 Orchard.Environment.ShellBuilders.ShellContextFactory.CreateShellContext(ShellSettings settings) 的第 197 行: d:\Builds\Or 中 Orchard.Environment.DefaultOrchardHost.CreateShellContext(ShellSettings 设置) 的第 78 行