Orchard CMS - 在开发期间突然404

时间:2014-01-02 03:07:40

标签: orchardcms orchardcms-1.7

我正在接近使用Orchard CMS完成我的第一个网站,当我开始启用“博客”#39;模块我看到了错误页面。我希望我更加关注它,而是关闭它并重新启动我的网站。

现在,我收到404错误,我可以访问我网站的前端或后端。我不知所措。

我在错误日志中找到了这些,但我真的不知道从哪里开始......

2014-01-01 19:58:09,140 [11] Orchard.Environment.DefaultOrchardHost - 无法启动租户:默认 Autofac.Core.DependencyResolutionException:没有使用&#39; Orchard.Environment.AutofacUtil.DynamicProxy2.ConstructorFinderWrapper&#39;找到的构造函数。 on type&#39; Orchard.Blogs.Routing.ArchiveConstraint&#39;可以使用可用的服务和参数调用: 无法解析参数&#39; Orchard.Autoroute.Services.IPathResolutionService pathResolutionService&#39;构造函数&#39; Void .ctor(Orchard.Autoroute.Services.IPathResolutionService)&#39;。    at 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个参数)在c:\ Projects \ OSS \ autofac \ Core \ Source \ Autofac \ Core \ Resolving \ InstanceLookup.cs:line 79    在Autofac.Core.Resolving.InstanceLookup.b_ 0()在c:\ Projects \ OSS \ autofac \ Core \ Source \ Autofac \ Core \ Resolving \ InstanceLookup.cs:第64行    at 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个参数)位于c:\ Projects \ OSS \ autofac \ Core \ Source \ Autofac \ Core \ Resolving \ ResolveOperation.cs:第123行    at autofac.Core.Resolving.InstanceLookup.ResolveComponent(IComponentRegistration注册,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个参数)在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: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:第270行    在c:\ Projects \ OSS \ autofac \ Core \ Source \ Autofac \ Core \ Resolving \ InstanceLookup.cs中的Autofac.Core.Resolving.InstanceLookup.Execute():第64行    在Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope,IComponentRegistration注册,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个参数)中c:\ Projects \ OSS \ autofac \ Core \ Source \ Autofac \ Core \ Resolving \ InstanceLookup.cs:第119行    在Autofac.Features.Collections.CollectionRegistrationSource。&lt;&gt; c _DisplayClass4。&lt;&gt; c_ DisplayClass6.b _1(IComponentRegistration cr)在c:\ Projects \ OSS \ autofac \ Core \ Source \ Autofac \ Features \ Collections \ CollectionRegistrationSource.cs:第75行    at System.Linq.Enumerable.WhereSelectArrayIterator 2.MoveNext() at System.Linq.Buffer 1..ctor(IEnumerable 1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable 1 source)    在Autofac.Features.Collections.CollectionRegistrationSource。&lt;&gt; 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个参数)c:\ Projects \ OSS \ autofac \ Core \ Source \ Autofac \ Core \ Activators \ Delegate \ DelegateActivator.cs:第68行    at autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable 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 1个参数)在c:\ Projects \ OSS \ autofac \ Core \ Source \ Autofac \ Core \ Resolving \ ResolveOperation.cs:第123行    at autofac.Core.Resolving.InstanceLookup.ResolveComponent(IComponentRegistration注册,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)在c:\ Projects \ OSS \ autofac \ Core \ Source \ Autofac \ Core \ Registration \ ExternalRegistrySource.cs:第80行    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:line 68 at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable 1参数)在c:\ Projects \ OSS \ autofac \ Core \ Source \ Autofac \ Core \ Resolving \ InstanceLookup.cs:line 79    at autofac.Core.Resolving.InstanceLookup.Execute()在c:\ Projects \ OSS \ autofac \ Core \ Source \ Autofac \ Core \ Resolving \ InstanceLookup.cs:第61行    在Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope,IComponentRegistration注册,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个参数)中c:\ Projects \ OSS \ autofac \ Core \ Source \ Autofac \ Core \ Resolving \ InstanceLookup.cs:第119行    在Autofac.Core.Activators.Reflection.AutowiringParameter。&lt;&gt; c_ DisplayClass2.b _0()在c:\ Projects \ OSS \ autofac \ Core \ Source \ Autofac \ Core \ Activators \ Reflection中\ AutowiringParameter.cs:第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) in c:\Projects\OSS\autofac\Core\Source\Autofac\Core\Activators\Reflection\ReflectionActivator.cs:line 122 at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable 1个参数)在c:\ Projects \ OSS \ autofac \ Core \ Source \ Autofac \ Core \ Resolving \ InstanceLookup.cs:line 79    在Autofac.Core.Resolving.InstanceLookup.b__0()在c:\ Projects \ OSS \ autofac \ Core \ Source \ Autofac \ Core \ Resolving \ InstanceLookup.cs:第64行    at 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个参数)位于c:\ Projects \ OSS \ autofac \ Core \ Source \ Autofac \ Core \ Resolving \ ResolveOperation.cs:第123行    at autofac.Core.Resolving.InstanceLookup.ResolveComponent(IComponentRegistration注册,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)在c:\ Projects \ OSS \ autofac \ Core \ Source \ Autofac \ Core \ Registration \ ExternalRegistrySource.cs:第80行    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:line 68 at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable 1参数)在c:\ Projects \ OSS \ autofac \ Core \ Source \ Autofac \ Core \ Resolving \ InstanceLookup.cs:line 79    at autofac.Core.Resolving.InstanceLookup.Execute()在c:\ Projects \ OSS \ autofac \ Core \ Source \ Autofac \ Core \ Resolving \ InstanceLookup.cs:第61行    在Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope,IComponentRegistration注册,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个参数)中c:\ Projects \ OSS \ autofac \ Core \ Source \ Autofac \ Core \ Resolving \ ResolveOperation.cs:第85行    at autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration注册,IEnumerable 1 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行    at autofac.ResolutionExtensions.ResolveService(IComponentContext上下文,服务服务,IEnumerable 1 parameters) in c:\Projects\OSS\autofac\Core\Source\Autofac\ResolutionExtensions.cs:line 343 at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable 1个参数)在c:\ Projects \ OSS \ autofac \ Core \ Source \ Autofac \ ResolutionExtensions.cs:第197行    位于D:\ Builds \ OrchardFull \ src \ Orchard \ Environment \ ShellBuilders \ ShellContextFactory.cs中的Orchard.Environment.ShellBuilders.ShellContextFactory.CreateShellContext(ShellSettings设置):第78行    在d:\ Builds \ Or

中的Orchard.Environment.DefaultOrchardHost.CreateShellContext(ShellSettings设置)

1 个答案:

答案 0 :(得分:0)

授予所有用户对Orchard.Web文件夹的NTFS写入权限。这可能会有所帮助 - 我没有设置权限时遇到类似的错误。 此外,请确保AppPool用户(或网络服务 - 如果拥有您的应用程序池的人)是您要连接的数据库中的dbo。 AppPool用户名是“IIS AppPool” - 您在SQL Server中将此用户添加为Windows用户,然后用户/角色映射为他提供所需数据库的dbo权限。