My app was working last night then I try to run it this morning and I keep getting this error, does anyone know what may be causing it? System.AggregateException: One or more errors occurred. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: The calling thread must be STA, because many UI components require this. at System.Windows.Input.InputManager..ctor() at System.Windows.Input.InputManager.GetCurrentInputManagerImpl() at System.Windows.Input.KeyboardNavigation..ctor() at System.Windows.FrameworkElement.FrameworkServices..ctor() at System.Windows.FrameworkElement.EnsureFrameworkServices() at System.Windows.FrameworkElement..ctor() at System.Windows.Controls.Control..ctor() at System.Windows.Window..ctor() at Mendix.Modeler.Controls.Windows.Dialogs.DialogBaseHandler..ctor() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Controls.Windows\Dialogs\DialogBaseHandler.cs:line 21 --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Mendix.Modeler.Utility.Gui.PlatformHandlerAttribute.<>c__DisplayClass2_0.<Initialize>b__1() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Utility.Gui\PlatformHandlerAttribute.cs:line 32 at Eto.Widget..ctor() at Mendix.Modeler.Core.View.ExceptionHandling.ExceptionHandler.ShowExceptionDialog(Exception exception) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core.View.CrossPlatform\ExceptionHandling\ExceptionHandler.cs:line 84 at Mendix.Modeler.Core.View.ExceptionHandling.ExceptionHandler.HandleUnhandledException(Exception exception) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core.View.CrossPlatform\ExceptionHandling\ExceptionHandler.cs:line 58 at Mendix.Modeler.Common.BackgroundChecker.OnCheckComplete(Task`1 result) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core.View\Common\Problems\BackgroundChecker.cs:line 172 at System.Threading.Tasks.Task.Execute() --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at Mendix.Modeler.Common.BackgroundChecker.Check() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core.View\Common\Problems\BackgroundChecker.cs:line 105 at Mendix.Modeler.Deployment.CoreDeploymentWork.CheckForErrors(IProject project, DeploymentSettings settings, IProgressInfo info) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Deployment\CoreDeploymentWork.cs:line 76 at Mendix.Modeler.Deployment.DeploymentProcessBuilder.<>c__DisplayClass12_0.<AddBuildStepsForPhase>b__0(IProgressInfo info) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Deployment\DeploymentProcessBuilder.cs:line 132 at Mendix.Modeler.Deployment.FileIOExceptionHandlingProcess.CatchDiskException(Action action) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Deployment\FileIOExceptionHandlingProcess.cs:line 28 at Mendix.Modeler.Deployment.FileIOExceptionHandlingProcess.<>c__DisplayClass1_0.<AddStep>b__0(IProgressInfo info) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Deployment\FileIOExceptionHandlingProcess.cs:line 19 at Mendix.Modeler.UIFramework.Progress.ProcessRunner.RunStep(Step step) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.UIFramework\Progress\ProcessRunner.cs:line 101 at Mendix.Modeler.UIFramework.Progress.ProcessRunner.OnDoWork(Object sender, DoWorkEventArgs e) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.UIFramework\Progress\ProcessRunner.cs:line 74 at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument) ---> (Inner Exception #0) System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: The calling thread must be STA, because many UI components require this. at System.Windows.Input.InputManager..ctor() at System.Windows.Input.InputManager.GetCurrentInputManagerImpl() at System.Windows.Input.KeyboardNavigation..ctor() at System.Windows.FrameworkElement.FrameworkServices..ctor() at System.Windows.FrameworkElement.EnsureFrameworkServices() at System.Windows.FrameworkElement..ctor() at System.Windows.Controls.Control..ctor() at System.Windows.Window..ctor() at Mendix.Modeler.Controls.Windows.Dialogs.DialogBaseHandler..ctor() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Controls.Windows\Dialogs\DialogBaseHandler.cs:line 21 --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Mendix.Modeler.Utility.Gui.PlatformHandlerAttribute.<>c__DisplayClass2_0.<Initialize>b__1() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Utility.Gui\PlatformHandlerAttribute.cs:line 32 at Eto.Widget..ctor() at Mendix.Modeler.Core.View.ExceptionHandling.ExceptionHandler.ShowExceptionDialog(Exception exception) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core.View.CrossPlatform\ExceptionHandling\ExceptionHandler.cs:line 84 at Mendix.Modeler.Core.View.ExceptionHandling.ExceptionHandler.HandleUnhandledException(Exception exception) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core.View.CrossPlatform\ExceptionHandling\ExceptionHandler.cs:line 58 at Mendix.Modeler.Common.BackgroundChecker.OnCheckComplete(Task`1 result) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core.View\Common\Problems\BackgroundChecker.cs:line 172 at System.Threading.Tasks.Task.Execute()<---
asked
Richard Ruiz
2 answers
1
Hello Chris,
I tried to re-start the machine and even re-installed the app, but the issue persisted.
I will open a support ticket for this incident.
Thank you for your reply.
answered
Richard Ruiz
0
Hi Richard,
You need to install this mendix module to solve this problem: