Error - Exception has been thrown by the target of an invocation

0
Whilst attempting to run an app I get this System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Value cannot be null. Parameter name: key at System.Collections.Generic.Dictionary2.FindEntry(TKey key) at Mendix.Modeler.Integration.AppServices.MsdBuilder.AddEntity(Entity entity, IList1 dataMembers, Dictionary2 entities, List1 associations) in c:\jenkins\workspace\AppStudio-Integration-Modeler\src\modeler\Mendix.Modeler.Integration\AppServices\MendixServiceDefinition\MsdBuilder.cs:line 106 at Mendix.Modeler.Integration.AppServices.MsdBuilder.BuildDomainModel(VersionedService versionedService) in c:\jenkins\workspace\AppStudio-Integration-Modeler\src\modeler\Mendix.Modeler.Integration\AppServices\MendixServiceDefinition\MsdBuilder.cs:line 68 at Mendix.Modeler.Integration.WebServices.VersionedService.getDomainModelJsonString() in c:\jenkins\workspace\AppStudio-Integration-Modeler\src\modeler\Mendix.Modeler.Integration\WebServices\Publish\VersionedService.cs:line 185 --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture) at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index) at Mendix.Modeler.Storage.Operations.WriteBsoner.WriteBsonObject(BsonWriter writer, IStorageUnit enclosingUnit, IStorageObject obj) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Mendix.Modeler.Storage\Operations\WriteBsoner.cs:line 36 at Mendix.Modeler.Storage.Operations.WriteBsoner.WriteBsonValue(BsonWriter writer, IStorageUnit enclosingUnit, CachedProperty prop, Object value) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Mendix.Modeler.Storage\Operations\WriteBsoner.cs:line 90 at Mendix.Modeler.Storage.Operations.WriteBsoner.WriteBsonObject(BsonWriter writer, IStorageUnit enclosingUnit, IStorageObject obj) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Mendix.Modeler.Storage\Operations\WriteBsoner.cs:line 47 at Mendix.Modeler.Storage.Operations.Deployer.WriteUnitsContents(FileStream fileStream, HashSet`1 units, IProgressInfo info) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Mendix.Modeler.Storage\Operations\Deployer.cs:line 75 at Mendix.Modeler.Storage.Operations.Deployer.Deploy(IStorageUnit unit, String targetFilePath, IProgressInfo info) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Mendix.Modeler.Storage\Operations\Deployer.cs:line 27 at Mendix.Modeler.Storage.StorageUtil.Deploy(IStorageUnit unit, String targetFilePath, IProgressInfo info) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Mendix.Modeler.Storage\StorageUtil.cs:line 17 at Mendix.Modeler.Deployment.DeploymentProcessBuilder.ExportModel(IProgressInfo info) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Modeler\Deployment\DeploymentProcessBuilder.cs:line 88 at Mendix.Modeler.Deployment.FileIOExceptionHandlingProcess.<>cDisplayClass2.<>cDisplayClass4.<addstep>b1() in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Modeler\Deployment\FileIOExceptionHandlingProcess.cs:line 19 at Mendix.Modeler.Deployment.FileIOExceptionHandlingProcess.CatchDiskException(Action action) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Modeler\Deployment\FileIOExceptionHandlingProcess.cs:line 28 at Mendix.Modeler.Deployment.FileIOExceptionHandlingProcess.<>cDisplayClass2.<addstep>b0(IProgressInfo info) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Modeler\Deployment\FileIOExceptionHandlingProcess.cs:line 19 at Mendix.Modeler.Utility.Progress.Step.Run(IProgressInfo info) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Mendix.Modeler.Utility.Gui\Progress\Step.cs:line 22 at Mendix.Modeler.Utility.Progress.ProcessRunner.RunStep(Step step) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Mendix.Modeler.Utility.Gui\Progress\ProcessRunner.cs:line 85 at Mendix.Modeler.Utility.Progress.ProcessRunner.workerDoWork(Object sender, DoWorkEventArgs e) in c:\jenkins\workspace\AppStudio-Core-Modeler\src\modeler\Mendix.Modeler.Utility.Gui\Progress\ProcessRunner.cs:line 67 at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument) There is a similar message on this post https://community.mendix.com/questions/6316/Error-after-upgrading-project-from-532-to-540 but I have not upgraded, perhaps added some folders, and also a web service and XML mappings were the last changes made. Any ideas? Thanks Adrian
asked
1 answers
1

It is likely due to model inconsistency with web service. Did you rename any entity/attribute/association after creating published web service?

Note: We have improved the consistency validation in Mendix 5.7.

answered