Something went wrong while trying to Export Documentation from app Module.
0
Hi Experts, While export documentation from the app module it throws the below-mentioned error. System.InvalidCastException: Unable to cast object of type 'Mendix.Modeler.DomainModels.CrossAssociation' to type 'Mendix.Modeler.DomainModels.Association'. at Mendix.Modeler.MainWindow.Documentation.DocumentGenerators.Base.DocumentationDictionaryGeneratorBase`1.Generate(Dictionary`2 result, IDocumentObject obj) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.MainWindow\Documentation\DocumentGenerators\Base\DocumentationDictionaryGeneratorBase.cs:line 17 at Mendix.Modeler.MainWindow.Documentation.DocumentGenerators.DocumentationGenerator.GetCollectionItems(IEnumerable`1 objects) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.MainWindow\Documentation\DocumentGenerators\DocumentationGenerator.cs:line 164 at Mendix.Modeler.MainWindow.Documentation.DocumentGenerators.DocumentationGenerator.GetCollectionItems(IEnumerable`1 objects) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.MainWindow\Documentation\DocumentGenerators\DocumentationGenerator.cs:line 164 at Mendix.Modeler.MainWindow.Documentation.DocumentGenerators.DocumentationGenerator.BuildDomainModel(IDomainModel domainModel) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.MainWindow\Documentation\DocumentGenerators\DocumentationGenerator.cs:line 127 at Mendix.Modeler.MainWindow.Documentation.DocumentGenerators.DocumentationGenerator.AddDomainModel(Dictionary`2 result, IModule m) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.MainWindow\Documentation\DocumentGenerators\DocumentationGenerator.cs:line 95 at Mendix.Modeler.MainWindow.Documentation.DocumentGenerators.DocumentationGenerator.<GetModulesCollection>b__6_0(IModule m) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.MainWindow\Documentation\DocumentGenerators\DocumentationGenerator.cs:line 87 at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext() at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at Mendix.Modeler.MainWindow.Documentation.DocumentGenerators.DocumentationGenerator.BuildProjectDictionary(IProject project) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.MainWindow\Documentation\DocumentGenerators\DocumentationGenerator.cs:line 77 at Mendix.Modeler.MainWindow.Documentation.DocumentGenerators.DocumentationGenerator.<>c__DisplayClass3_0.<Export>b__0() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.MainWindow\Documentation\DocumentGenerators\DocumentationGenerator.cs:line 59 at Mendix.Modeler.Utility.WhitelistAware.WithAllowedPath(String path, Action action) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Utility\WhitelistAware.cs:line 50 at Mendix.Modeler.Projects.ProjectExplorers.ProjectNode.ProjectNode.<CollectContextMenuItems>b__9_1() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Projects\ProjectExplorers\ProjectNode\ProjectNode.cs:line 65 at Eto.Forms.Command.OnExecuted(EventArgs e) at Eto.Forms.Command.System.Windows.Input.ICommand.Execute(Object parameter) at Eto.Forms.MenuItem.OnClick(EventArgs e) at Eto.Forms.MenuItem.Callback.OnClick(MenuItem widget, EventArgs e) at Eto.Wpf.Forms.Menu.MenuItemHandler`3.OnClick() at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) Does someone has any idea on this?
Shutdown your server and re-run the application. If the error is not sort out commit the changes and close the application and open it again run it. It is due to the project is created under older version and migrated with later version. I hope this will helps you.