Solution - Fiber Manager - Connection Manager Error: Activation Error Occured while trying to get instance of type ICircuitHealer

Version 2

    Behavior

     

    The following error message is received when attempting to open Connection Manager:

    connection manager activiation error.jpg

    Unhandled Exception

    Activiation error occurred while trying to get instance of type

    ICircuitHealer, key""

     

    An error message similar to the following may be written to the Miner Event Viewer log:

     

     

    2014-03-18 16:52:04,588 [1] ERROR Miner.Desktop.FiberManager.ConnectionManager [(null)] - Microsoft.Practices.ServiceLocation.ActivationException: Activation error occured while trying to get instance of type ICircuitHealer, key "" ---> Microsoft.Practices.Unity.ResolutionFailedException: Resolution of the dependency failed, type = "Miner.Framework.FiberManager.Contracts.ICircuitHealer", name = "". Exception message is: The current build operation (build key Build Key[Miner.Framework.FiberManager.CircuitHealer, null]) failed: The parameter repository could not be resolved when attempting to call constructor Miner.Framework.FiberManager.CircuitHealer(Miner.Framework.FiberManager.Contracts.ICircuitRepository repository, Miner.Framework.FiberManager.RowConvertor convertor, Miner.Interop.IMMModelNameManager modelNameManager, ESRI.ArcGIS.Geodatabase.IWorkspace workspace). (Strategy type BuildPlanStrategy, index 4) ---> Microsoft.Practices.ObjectBuilder2.BuildFailedException: The current build operation (build key Build Key[Miner.Framework.FiberManager.CircuitHealer, null]) failed: The parameter repository could not be resolved when attempting to call constructor Miner.Framework.FiberManager.CircuitHealer(Miner.Framework.FiberManager.Contracts.ICircuitRepository repository, Miner.Framework.FiberManager.RowConvertor convertor, Miner.Interop.IMMModelNameManager modelNameManager, ESRI.ArcGIS.Geodatabase.IWorkspace workspace). (Strategy type BuildPlanStrategy, index 4) ---> System.InvalidOperationException: The parameter repository could not be resolved when attempting to call constructor Miner.Framework.FiberManager.CircuitHealer(Miner.Framework.FiberManager.Contracts.ICircuitRepository repository, Miner.Framework.FiberManager.RowConvertor convertor, Miner.Interop.IMMModelNameManager modelNameManager, ESRI.ArcGIS.Geodatabase.IWorkspace workspace). ---> Microsoft.Practices.ObjectBuilder2.BuildFailedException: The current build operation (build key Build Key[Miner.Framework.FiberManager.CircuitRepository, null]) failed: Object reference not set to an instance of an object. (Strategy type BuildPlanStrategy, index 4) ---> System.NullReferenceException: Object reference not set to an instance of an object.

       at Miner.Framework.FiberManager.RowConvertor.GetGlobalIdFieldName(ITable table)

       at Miner.Framework.FiberManager.CircuitRepository..ctor(RowConvertor converter, ITable circuitTable, IMMModelNameManager mnManager)

       at BuildUp_Miner.Framework.FiberManager.CircuitRepository(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)

       --- End of inner exception stack trace ---

       at Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context)

       at Microsoft.Practices.Unity.ObjectBuilder.NamedTypeDependencyResolverPolicy.Resolve(IBuilderContext context)

       at BuildUp_Miner.Framework.FiberManager.CircuitHealer(IBuilderContext )

       --- End of inner exception stack trace ---

       at Microsoft.Practices.ObjectBuilder2.DynamicMethodConstructorStrategy.ThrowForResolutionFailed(Exception inner, String parameterName, String constructorSignature, IBuilderContext context)

       at BuildUp_Miner.Framework.FiberManager.CircuitHealer(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)

       --- End of inner exception stack trace ---

       at Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context)

       at Microsoft.Practices.ObjectBuilder2.Builder.BuildUp(IReadWriteLocator locator, ILifetimeContainer lifetime, IPolicyList policies, IStrategyChain strategies, Object buildKey, Object existing)

       at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name)

       --- End of inner exception stack trace ---

       at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name)

       at Microsoft.Practices.Unity.UnityContainer.Resolve(Type t, String name)

       at Microsoft.Practices.Unity.ServiceLocatorAdapter.UnityServiceLocator.DoGetInstance(Type serviceType, String key)

       at Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key)

       --- End of inner exception stack trace ---

       at Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key)

       at Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance[TService]()

       at Miner.Desktop.FiberManager.ConnectionForm..ctor(IEditor edit, IWorkspace wkspc, IActiveView activeView, String name, DataSet data)

       at Miner.Desktop.FiberManager.ConnectionManager.ShowConnectionManager(IFeature feature)

       at Miner.Desktop.FiberManager.ConnectionManager.OnMouseDown(Int32 Button, Int32 Shift, Int32 X, Int32 Y)

    {log4net:HostName=testVM, LoggingAssemblyFileVersion=10.20.0.265}

     

     

    Cause

     

    This issue may be related to the following bug:

    MM52727: Fiber Manager -- Connection Manager doesn't open if layer from non-fiber database exists on top of map.

    The error occurs when the top layer of an MXD or stored display comes from a database that is not configured for Fiber Manager.

     

    Workaround

     

    Move the layer from the non-Fiber database so that it is not at the top of the list of layers.