Mendix fatal exception on startup

0
I can’t start Mendix. I don’t know what happened but I’ve had some computer issues and then Mendix doesn’t want to load. I have tried versions 7.18 and 7.23,7.    Messages:  SimpleInjector.ActivationException: The registered delegate for type IMainForm threw an exception. The registered delegate for type IModelerGui threw an exception. The registered delegate for type IApplicationManager threw an exception. Configuration system failed to initialize ---> SimpleInjector.ActivationException: The registered delegate for type IModelerGui threw an exception. The registered delegate for type IApplicationManager threw an exception. Configuration system failed to initialize ---> SimpleInjector.ActivationException: The registered delegate for type IApplicationManager threw an exception. Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: Unrecognized element. (C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config line 14)    at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)    at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)    at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)    --- End of inner exception stack trace ---    at System.Configuration.ConfigurationManager.PrepareConfigSystem()    at System.Configuration.ConfigurationManager.get_AppSettings()    at Mendix.Modeler.Core.Gui.EnvironmentProvider.get_DtapEnvironment() in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.Core\Core\Gui\EnvironmentProvider.cs:line 37    at Mendix.Modeler.Core.Gui.ApplicationManagerBase.UpdateTitle() in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.Core\Core\Gui\ApplicationManagerBase.cs:line 108    at Mendix.Modeler.Core.Gui.ApplicationManagerBase..ctor(IModelerVersionProvider modelerVersionProvider, IDevSettingsProvider devSettingsProvider, IEnvironmentProvider environmentProvider, IProjectManager projectManager, IModelerSettingsManager modelerSettingsManager, IAppDescriptionProvider appDescriptionProvider, IProjectCloser projectCloser) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.Core\Core\Gui\ApplicationManagerBase.cs:line 90    at Mendix.Modeler.WindowsGui.ApplicationManager..ctor(IModelerVersionProvider modelerVersionProvider, IDevSettingsProvider devSettingsProvider, IEnvironmentProvider environmentProvider, IProjectManager projectManager, IModelerSettingsManager modelerSettingsManager, IAppDescriptionProvider appDescriptionProvider, IProjectCloser projectCloser) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WindowsGui\ApplicationManager.cs:line 18    at lambda_method(Closure )    at SimpleInjector.Lifestyles.SingletonLifestyle.SingletonLifestyleRegistrationBase`1.CreateInstanceWithNullCheck()    at System.Lazy`1.CreateValue()    at System.Lazy`1.LazyInitValue()    at SimpleInjector.Lifestyles.SingletonLifestyle.SingletonLifestyleRegistrationBase`1.BuildExpression()    at SimpleInjector.Registration.BuildExpression(InstanceProducer producer)    at SimpleInjector.InstanceProducer.BuildExpressionInternal()    at System.Lazy`1.CreateValue()    at System.Lazy`1.LazyInitValue()    at SimpleInjector.InstanceProducer.BuildExpression()    --- End of inner exception stack trace ---    at SimpleInjector.InstanceProducer.BuildExpression()    at SimpleInjector.ContainerOptions.BuildParameterExpression(ParameterInfo parameter)    at SimpleInjector.Registration.BuildConstructorParameters(ConstructorInfo constructor)    at SimpleInjector.Registration.BuildNewExpression(Type serviceType, Type implementationType)    at SimpleInjector.Registration.BuildTransientExpression[TService,TImplementation]()    at SimpleInjector.Lifestyles.SingletonLifestyle.SingletonLifestyleRegistrationBase`1.CreateInstanceWithNullCheck()    at System.Lazy`1.CreateValue()    at System.Lazy`1.LazyInitValue()    at SimpleInjector.Lifestyles.SingletonLifestyle.SingletonLifestyleRegistrationBase`1.BuildExpression()    at SimpleInjector.Registration.BuildExpression(InstanceProducer producer)    at SimpleInjector.InstanceProducer.BuildExpressionInternal()    at System.Lazy`1.CreateValue()    at System.Lazy`1.LazyInitValue()    at SimpleInjector.InstanceProducer.BuildExpression()    --- End of inner exception stack trace ---    at SimpleInjector.InstanceProducer.BuildExpression()    at SimpleInjector.ContainerOptions.BuildParameterExpression(ParameterInfo parameter)    at SimpleInjector.Registration.BuildConstructorParameters(ConstructorInfo constructor)    at SimpleInjector.Registration.BuildNewExpression(Type serviceType, Type implementationType)    at SimpleInjector.Registration.BuildTransientExpression[TService,TImplementation]()    at SimpleInjector.Lifestyles.SingletonLifestyle.SingletonLifestyleRegistrationBase`1.CreateInstanceWithNullCheck()    at System.Lazy`1.CreateValue()    at System.Lazy`1.LazyInitValue()    at SimpleInjector.Lifestyles.SingletonLifestyle.SingletonLifestyleRegistrationBase`1.BuildExpression()    at SimpleInjector.Registration.BuildExpression(InstanceProducer producer)    at SimpleInjector.InstanceProducer.BuildExpressionInternal()    at System.Lazy`1.CreateValue()    at System.Lazy`1.LazyInitValue()    at SimpleInjector.InstanceProducer.BuildInstanceCreator()    at SimpleInjector.InstanceProducer.GetInstance()    --- End of inner exception stack trace ---    at SimpleInjector.InstanceProducer.GetInstance()    at SimpleInjector.Container.GetInstance[TService]()    at Mendix.Modeler.WindowsGui.App.CreateMainForm() in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WindowsGui\App.xaml.cs:line 99
asked
2 answers
2

Hello Angelo,

I see in the stacktrace that there is something wrong in file `C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config`. This file does not belong directly to the Desktop Modeler, but to the Microsoft .NET Framework 4.6.2 that is installed together with the Desktop Modeler. Can you try to uninstall Microsoft .NET Framework 4.6.2 and then reinstall it? (On section `Troubleshooting` of page https://docs.mendix.com/howto7/general/install-the-mendix-desktop-modeler you can find the right download).

Or uninstall Microsoft .NET Framework 4.6.2 and the Desktop Modeler, and then reinstall the Desktop Modeler so it installs the right .NET Framework dependency itself.

I hope this helps.

Paul

answered
0

Have you tried uninstalling Studio Pro and then re-installing it?

answered