November Happy Hour will be moved to Thursday December 5th.

Issue with Structuremap

Vote:
 

I am running into a structure map issue i believe and not sure how to solve it appropriately.  Has anyone ran into this.

Server Error in '/' Application.
Value cannot be null.
Parameter name: httpContext
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: System.ArgumentNullException: Value cannot be null.
Parameter name: httpContext

Source Error:


[No relevant source lines]


Source File: c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\feb9e478\51c2f68d\App_global.asax.v8jyifn3.0.cs    Line: 0

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: httpContext]
   System.Web.HttpContextWrapper..ctor(HttpContext httpContext) +9787473
   lambda_method(Closure , IBuildSession , IContext ) +133

[StructureMapBuildException: Failure while building 'Lambda: new HttpContextWrapper(HttpContext.Current)', check the inner exception for details
1.) Lambda: new HttpContextWrapper(HttpContext.Current)
2.) Instance of System.Web.HttpContextBase (System.Web.HttpContextWrapper)
3.) new ExtensibleMetadataProvider(*Default of MetadataHandlerRegistry*, *Default of LocalizationService*, *Default of HttpContextBase*)
4.) EPiServer.Shell.ObjectEditing.ExtensibleMetadataProvider
5.) Instance of EPiServer.Shell.ObjectEditing.ExtensibleMetadataProvider
6.) new ContentDataMetadataProvider(*Default of MetadataHandlerRegistry*, *Default of ServiceAccessor*, *Default of ITabDefinitionRepository*, *Default of ContentTypeModelRepository*, *Default of ContentMetaDataPropertiesInjector*, *Default of IMetaDataResolver*, *Default of IContentLoader*, *Default of LocalizationService*, *Default of ExtensibleMetadataProvider*, *Default of ServiceAccessor*)
7.) EPiServer.Cms.Shell.UI.Internal.ContentDataMetadataProvider
8.) Instance of EPiServer.Cms.Shell.UI.Internal.ContentDataMetadataProvider
9.) Container.GetInstance(EPiServer.Cms.Shell.UI.Internal.ContentDataMetadataProvider)
]
   lambda_method(Closure , IBuildSession , IContext ) +937
   StructureMap.Building.BuildPlan.Build(IBuildSession session, IContext context) in c:\BuildAgent\work\a395dbde6b793293\src\StructureMap\Building\BuildPlan.cs:151
   StructureMap.BuildSession.BuildNewInSession(Type pluginType, Instance instance) in c:\BuildAgent\work\a395dbde6b793293\src\StructureMap\BuildSession.cs:114
   StructureMap.Pipeline.NulloTransientCache.Get(Type pluginType, Instance instance, IBuildSession session) in c:\BuildAgent\work\a395dbde6b793293\src\StructureMap\Pipeline\NulloTransientCache.cs:28
   StructureMap.BuildSession.ResolveFromLifecycle(Type pluginType, Instance instance) in c:\BuildAgent\work\a395dbde6b793293\src\StructureMap\BuildSession.cs:103
   StructureMap.SessionCache.GetObject(Type pluginType, Instance instance, ILifecycle lifecycle) in c:\BuildAgent\work\a395dbde6b793293\src\StructureMap\SessionCache.cs:93
   StructureMap.SessionCache.GetDefault(Type pluginType, IPipelineGraph pipelineGraph) in c:\BuildAgent\work\a395dbde6b793293\src\StructureMap\SessionCache.cs:68
   StructureMap.Container.GetInstance(Type pluginType) in c:\BuildAgent\work\a395dbde6b793293\src\StructureMap\Container.cs:337
   EPiServer.ServiceLocation.StructureMapServiceLocator.DoGetInstance(Type serviceType, String key) +40
   EPiServer.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key) +42

[ActivationException: Activation error occurred while trying to get instance of type ContentDataMetadataProvider, key ""]
   EPiServer.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key) +101
   EPiServer.ServiceLocation.ServiceLocatorImplBase.GetInstance() +60
   EPiServer.Cms.Shell.<>c__DisplayClass2_0.b__0() +93
   System.Threading.Tasks.Task.InnerInvoke() +73
   System.Threading.Tasks.Task.Execute() +51

[AggregateException: One or more errors occurred.]
   System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) +4126993
   System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) +12256921
   EPiServer.Cms.Shell.<>c__DisplayClass2_0.b__1(Object sender, EventArgs args) +15

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
   System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +160
   System.Delegate.DynamicInvokeImpl(Object[] args) +117
   EPiServer.Framework.Initialization.InitializationEngine.OnInitComplete() +195
   EPiServer.Framework.Initialization.InitializationEngine.ExecuteTransition(Boolean continueTransitions) +164
   EPiServer.Framework.Initialization.InitializationEngine.Initialize() +40
   EPiServer.Framework.Initialization.<>c.b__7_0(InitializationEngine e) +9
   EPiServer.Framework.Initialization.InitializationModule.EngineExecute(HostType hostType, Action`1 engineAction) +261
   EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +170
   EPiServer.Global..ctor() +76
   Frigidaire.Web.Global..ctor() +29
   ASP.global_asax..ctor() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\feb9e478\51c2f68d\App_global.asax.v8jyifn3.0.cs:0

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +114
   System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +232
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +83
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1088
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +128
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +20
   System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +60
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +260
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296

[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9963380
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254

I am sure i am missing something but is there a way to log what exacly it is trying to call.

#175864
Mar 05, 2017 0:13
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.