Mendix Desktop Modeler not launching and throws error

1
Mendix Desktop Modeler is throwing below exception while opening. None of the solutions given earlier for same issue worked for me. I tried solutions given below https://community.mendix.com/link/questions/8110 https://community.mendix.com/link/questions/12612 https://community.mendix.com/link/questions/61912 SimpleInjector.ActivationException: The registered delegate for type IMainForm threw an exception. The registered delegate for type IModelerGui threw an exception. This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms. ---> SimpleInjector.ActivationException: The registered delegate for type IModelerGui threw an exception. This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms. ---> System.InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.    at System.Security.Cryptography.SHA256Managed..ctor()    at Mendix.Modeler.Utility.HashUtil.CreateSHA256Hash(String plainText) in C:\jenkins\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.Utility\HashUtil.cs:line 24    at Mendix.Modeler.Storage.Database.Init(HashSet`1 assemblies, Type startType, IEnumerable`1 typeConverters, IEnumerable`1 summaries, String dbProductVersion, String dbBuildVersion) in C:\jenkins\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.Storage\Database.cs:line 47    at Mendix.Modeler.ModelerCore.InitStorage() in C:\jenkins\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.Core\Core\ModelerCore.cs:line 85    at Mendix.Modeler.ModelerCore..ctor(IAssemblySource assemblySource, IProjectManager projectManager, IFileSystem fileSystem) in C:\jenkins\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.Core\Core\ModelerCore.cs:line 61    at Mendix.Modeler.ModelerGui..ctor(IAssemblySource assemblySource, IProjectManager projectManager, IDevSettingsProvider devSettingsProvider, IModelerSettingsManager modelerSettingsManager, ISprintrConnector sprintrConnector, IDocumentControlManager documentControlManager, IGuiThreadExecutor guiThreadExecutor, IStorageUI storageUI, IVersionControlConnectorProvider versionControlConnectorProvider, IApplicationManager applicationManager, IUpdaterUI updaterUI, IDockControlManager dockControlManager, ILocalRunner localRunner, IProblemsChecker problemsChecker, IDocumentManager documentManager, IProjectCloser projectCloser, IFileSystem fileSystem, IProgressDialog progressDialog, IHelpPageOpener helpPageOpener, INewDocumentFormFactory newDocumentFormFactory, IDeployAndRunUtil deployAndRunUtil, IStatusCacheManager statusCacheManager) in C:\jenkins\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.Core\Core\Gui\ModelerGui.cs:line 63    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.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.InitModeler() in C:\jenkins\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.WindowsGui\App.xaml.cs:line 141
asked
2 answers
2

Mohan,

When you google for part of the error messsage in the stacktrace:

"This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms."

You'll see that most issues arise from a setting in the registry of your windows machine. Maybe following the solutions offered there (setting \FipsAlgorithmPolicy\Enabled key to 0) will provide a solution in your case as well.

answered
1

The solution provided by Erwin worked for me! 

To further describe the solution. Press start, run 'regedit' and follow de following path: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\FIPSAlgorithmPolicy change 'enabled' setting with the default value of 0.

Hope this helps!

answered