This project is read-only.

Has anyone seen this exception?

Oct 14, 2010 at 5:35 PM

I occasionally get the following exception when running the project.  It isn't every time which makes me wonder if it is a timing issue.

Microsoft.Practices.Unity.ResolutionFailedException was unhandled by user code
  Message=Resolution of the dependency failed, type = "DanielVaughan.Calcium.Gui.IShell", name = "(none)".
Exception occurred while: while resolving.
Exception is: InvalidOperationException - The current type, DanielVaughan.Calcium.Gui.IShell, is an interface and cannot be constructed. Are you missing a type mapping?
-----------------------------------------------
At the time of the exception, the container was:

  Resolving DanielVaughan.Calcium.Gui.IShell,(none)

  Source=Microsoft.Practices.Unity
  TypeRequested=IShell
  StackTrace:
       at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides)
       at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, String name, IEnumerable`1 resolverOverrides)
       at Microsoft.Practices.Unity.UnityContainer.Resolve(Type t, String name, ResolverOverride[] resolverOverrides)
       at DanielVaughan.ServiceLocation.Unity.UnityServiceLocator.DoGetInstance(Type serviceType, String key) in C:\Projects\Calcium\Source\Core\Core\ServiceLocation\Unity\UnityServiceLocator.cs:line 49
       at Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key)
  InnerException: System.InvalidOperationException
       Message=The current type, DanielVaughan.Calcium.Gui.IShell, is an interface and cannot be constructed. Are you missing a type mapping?
       Source=Microsoft.Practices.Unity
       StackTrace:
            at Microsoft.Practices.ObjectBuilder2.DynamicMethodConstructorStrategy.ThrowForAttemptingToConstructInterface(IBuilderContext context)
            at BuildUp_DanielVaughan.Calcium.Gui.IShell(IBuilderContext )
            at Microsoft.Practices.ObjectBuilder2.DynamicMethodBuildPlan.BuildUp(IBuilderContext context)
            at Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context)
            at Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context)
            at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides)
       InnerException:

Coordinator
Oct 16, 2010 at 11:10 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.