Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
No configuration at all
StructureMap.StructureMapConfigurationException : No default Instance is registered and cannot be automatically determined for type 'StructureMap.Testing.Blogposts.Diagnostics.IDevice'
There is no configuration specified for StructureMap.Testing.Blogposts.Diagnostics.IDevice
1.) new DeviceUser(*Default of IDevice*)
2.) StructureMap.Testing.Blogposts.Diagnostics.DeviceUser
3.) Instance of StructureMap.Testing.Blogposts.Diagnostics.DeviceUser
4.) new DeviceUserUser(*Default of DeviceUser*)
5.) StructureMap.Testing.Blogposts.Diagnostics.DeviceUserUser
6.) Instance of StructureMap.Testing.Blogposts.Diagnostics.DeviceUserUser
7.) Container.GetInstance(StructureMap.Testing.Blogposts.Diagnostics.DeviceUserUser)
at lambda_method(Closure , IBuildSession , IContext )
Building\BuildPlan.cs(151,0): at StructureMap.Building.BuildPlan.Build(IBuildSession session, IContext context)
BuildSession.cs(108,0): at StructureMap.BuildSession.BuildNewInSession(Type pluginType, Instance instance)
Pipeline\NulloTransientCache.cs(28,0): at StructureMap.Pipeline.NulloTransientCache.Get(Type pluginType, Instance instance, IBuildSession session)
BuildSession.cs(102,0): at StructureMap.BuildSession.ResolveFromLifecycle(Type pluginType, Instance instance)
SessionCache.cs(88,0): at StructureMap.SessionCache.GetObject(Type pluginType, Instance instance, ILifecycle lifecycle)
SessionCache.cs(68,0): at StructureMap.SessionCache.GetDefault(Type pluginType, IPipelineGraph pipelineGraph)
BuildSession.cs(59,0): at StructureMap.BuildSession.GetInstance(Type pluginType)
Container.cs(322,0): at StructureMap.Container.GetInstance(Type pluginType)
Container.cs(187,0): at StructureMap.Container.GetInstance[T]()
Blogposts\Diagnostics\BadConfiguration.cs(19,0): at StructureMap.Testing.Blogposts.Diagnostics.BadConfiguration.no_configuration_at_all()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.