The following error can occur if the location of SoxItemsUIAssembly.dll is incorrectly referenced in the metadata that was imported. To resolve this issue do the following
- Open the IBF Meta data file that was imported
- Search for the following line <Port xsi:type="PortAssembly" Name="Asm.UI.SoxItemsUIAssembly"
- In the Location attribute of that line, ensure the value points to the actual location of the SoxItemsUIAssembly.dll" For example, C:\Program Files\AVIVA Consulting Group\Narrative Composer\2.1\bin
- Import the updated Metadata using the IBF Settings Manager
Error Message:
The specified assembly failed to load the Aviva.Aces.Narratives.SoxItemsTree control.
Stack Trace:
Microsoft.InformationBridge.Framework.Interfaces.UIException: The specified assembly failed to load the Aviva.Aces.Narratives.SoxItemsTree control. ---> Microsoft.InformationBridge.Framework.ExecutionEngine.EngineException: MetadataScope[Aviva.Solutions.IBF.Narrative].Port[IBFNarrativeSolution:Asm.UI.SoxItemsUIAssembly]: Cannot load specified assembly. ---> System.IO.FileNotFoundException: File or assembly name SoxItemsUIAssembly.dll, or one of its dependencies, was not found.
File name: "SoxItemsUIAssembly.dll"
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity)
at Microsoft.InformationBridge.Framework.ExecutionEngine.Utility.LoadAssembly(AssemblyName assemblyName)
at Microsoft.InformationBridge.Framework.ExecutionEngine.AssemblyPort.get_Assembly()
=== Pre-bind state information ===
LOG: Where-ref bind. Location = C:\Aviva Solutions\src\narrative composer\Version 1.0.0.1\IBFNarrative_ControlLib\bin\Debug\SoxItemsUIAssembly.dll
LOG: Appbase = C:\Program Files\Microsoft Information Bridge\1.5\Framework\
LOG: Initial PrivatePath = NULL
Calling assembly : (Unknown).
===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Aviva Solutions/src/narrative composer/Version 1.0.0.1/IBFNarrative_ControlLib/bin/Debug/SoxItemsUIAssembly.dll.
--- End of inner exception stack trace ---
at Microsoft.InformationBridge.Framework.ExecutionEngine.AssemblyPort.get_Assembly()
at Microsoft.InformationBridge.Framework.ExecutionEngine.CustomOperation.get_Assembly()
at Microsoft.InformationBridge.Framework.UI.GlobalHelpers.TryCreateInstanceFromPort(String typeName, IPort port, IMediator mediator, String targetInstance, Boolean fullTrustCheck, Boolean& errorHandled)
--- End of inner exception stack trace ---