others - asp.net - 激活ILogManager出错:没有匹配的绑定,并且该类型不是自绑定(asp.net - Error activating ILogManager: No matching bindings are available, and the type is not self-bindable)

我在一个网站上工作,这个网站是我从另一家公司接手的,我现在尝试移动文件来修复文件夹结构以匹配我们的标准结构,这会导致问题,原始的git文件夹结构是RootFolder/Project.Web,其中Project.Web包含web.config和csproj文件,而RootFoldercontains则包含文件,解决方案生成成功但是,在加载时出现此错误:


[ActivationException: Error activating ILogManager


No matching bindings are available, and the type is not self-bindable.


Activation path:


 1) Request for ILogManager



Suggestions:


 1) Ensure that you have defined a binding for ILogManager.


 2) If the binding was defined in a module, ensure that the module has been loaded into the kernel.


 3) Ensure you have not accidentally created more than one kernel.


 4) If you are using constructor arguments, ensure that the parameter name matches the constructors parameter name.


 5) If you are using automatic module loading, ensure the search path and filters are correct.


]


 Ninject.KernelBase.Resolve(IRequest request) +1261


 Ninject.ResolutionExtensions.Get(IResolutionRoot root, IParameter[] parameters) +75


 Sitecore.Social.Client.Mvc.Pipelines.Initialize.RegisterSocialArea.DoProcess() +653


 (Object , Object[] ) +74


 Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +469


 Sitecore.Nexus.Web.HttpModule.Application_Start() +226


 Sitecore.Nexus.Web.HttpModule.Init(HttpApplication app) +641


 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +580


 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +165


 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +267


 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +341



[HttpException(0x80004005): Error activating ILogManager


No matching bindings are available, and the type is not self-bindable.


Activation path:


 1) Request for ILogManager



Suggestions:


 1) Ensure that you have defined a binding for ILogManager.


 2) If the binding was defined in a module, ensure that the module has been loaded into the kernel.


 3) Ensure you have not accidentally created more than one kernel.


 4) If you are using constructor arguments, ensure that the parameter name matches the constructors parameter name.


 5) If you are using automatic module loading, ensure the search path and filters are correct.


]


 System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +523


 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +107



System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +688



时间:


internal sealed class ComponentBindings : NinjectModule



当我用class public时,它工作了


public sealed class ComponentBindings : NinjectModule



...