Thanx Jing,
I followed your suggestions. The exception thrown is:
+ $exception {"Domain object with identity f5ea6659-0cc0-471e-aa01-e3e486c3dbd6 was not found in directory."} System.Exception {Microsoft.VisualStudio.Modeling.DomainDataNotFoundException}
The show call stack is rather empty:
[External Code] > Ordina.WebScenario.Designer.DslPackage.dll!Ordina.WebScenario.Designer.Ordina_WebScenario_DesignerExplorerBase.FindRootElements(Microsoft.VisualStudio.Modeling.Store store = {Microsoft.VisualStudio.Modeling.Store}) Line 70 + 0x34 bytes C# [External Code]
The exception's callstack contains more info:
at Microsoft.VisualStudio.Modeling.DomainDataDirectory.GetDomainClass(Guid id)
at Microsoft.VisualStudio.Modeling.PartitionElementDirectory.FindElements(Guid domainClassId, Boolean includeDescendants)
at Microsoft.VisualStudio.Modeling.StoreElementDirectory.FindElements(Guid domainClassId, Boolean includeDescendants)
at Microsoft.VisualStudio.Modeling.StoreElementDirectory.FindElements(Guid domainClassId)
at Ordina.WebScenario.Designer.Ordina_WebScenario_DesignerExplorerBase.FindRootElements(Store store)
The code in the generated file ModelExplorer.cs is:
/// <summary>
/// Returns the root elements to be displayed in the explorer.
///</summary>
protected override global::System.Collections.IList FindRootElements(DslModeling::Store store)
{
return store.ElementDirectory.FindElements(global::Ordina.WebScenario.Designer.WebScenarioModel.DomainClassId);
}
I' am about to determine if the id is really not there.
John |