我正在开发一个Sitecore ASP。我从另一家公司接管的网站。我能够建立这个网站,并让它与我得到的源代码一起工作。我现在正试图改变文件夹结构,使其与我们的标准结构相匹配,这导致了一些问题。最初的git文件夹结构是RootFolder/Project。网络,项目所在地。网络包含了网络。config和csproj文件,rootfolder包含sln。我将结构更改为RootFolder/web/Website,其中Website是项目的新名称。网络文件夹。我更新了。sln文件查找项目。网状物csproj在新路径上进行了更新,并在IIS中更新了站点,以指向网站文件夹。解决方案成功构建。但是,我在加载时遇到了以下错误:
[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
我搜索了整个网站文件夹,寻找指向旧项目的任何路径。Web文件夹,但未找到任何内容。我不知道如何创建它所请求的绑定,也不知道为什么现在会发生这种情况,但在我移动项目之前,这并不是一个问题。