Sitecore.Glimpse icon indicating copy to clipboard operation
Sitecore.Glimpse copied to clipboard

Error activating ILogManager in Sitecore 8 sites

Open kevinobee opened this issue 9 years ago • 4 comments

See the GitHub pages for details of installing Glimpse in Sitecore 8.x websites and the issues arising from Sitecore.Social assemblies using the Ninject IoC.

kevinobee avatar Aug 06 '15 22:08 kevinobee

Server Error in '/' Application.

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.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Ninject.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.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[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) +1231 Ninject.ResolutionExtensions.Get(IResolutionRoot root, IParameter[] parameters) +83 Sitecore.Social.Client.Mvc.Pipelines.Initialize.RegisterSocialArea.DoProcess() +697 (Object , Object[] ) +74 Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +484 Sitecore.Nexus.Web.HttpModule.Application_Start() +227 Sitecore.Nexus.Web.HttpModule.Init(HttpApplication app) +673 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +618 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +419 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +343

[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) +579 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +120 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +712

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.81.0

kevinobee avatar Aug 06 '15 22:08 kevinobee

Resolve by commit 0ca12778ef424bebfc2171e31adbf00102e70e7c

Added Glimpse:DisableAsyncSupport appSetting to web.config transform.

kevinobee avatar Aug 19 '15 10:08 kevinobee

Just a note that this hasn't been included in the release.

jjrm avatar Nov 06 '15 00:11 jjrm

I resolved this by commenting out the line <setting name="Social.IoC.AssemblyFullName" value="Ninject, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7" /> in Sitecore.Social.config.

NeoXtreem avatar Aug 07 '19 16:08 NeoXtreem