An error occurred when I try to run app with Mendix Studio Pro 10.18.1.

0
Hello, I am using Mendix Studio Pro 10.18.1 for my app. I used maia for domain model entity creation and generated overview pages, but when I push the run locally button to start my app, an error occurred, the screenshot is in the below,   And the detailed message is shown as, Mendix.Modeler.M2EEConnector.M2EEException: The server encountered an error.    at Mendix.Modeler.M2EEConnector.M2EEResponse.CheckSuccess() in Mendix.Modeler.M2EEConnector\M2EEResponse.cs:line 57    at Mendix.Modeler.M2EEConnector.M2EEClient.UpdateAppContainerConfiguration(Int32 port, String listenAddresses) in Mendix.Modeler.M2EEConnector\M2EEClient.cs:line 160    at Mendix.Modeler.M2EEConnector.StartupManager.<>c__DisplayClass5_0.<PerformStartup>b__0() in Mendix.Modeler.M2EEConnector\StartupManager.cs:line 39    at Mendix.Modeler.Analytics.RuntimeProfilingAnalyticsScope.<>c__DisplayClass8_0.<Execute>b__0() in Mendix.Modeler.Analytics\RuntimeProfilingAnalyticsScope.cs:line 59    at Mendix.Modeler.Analytics.RuntimeProfilingAnalyticsScope.Execute[T](IAnalyticsEventManager eventManager, String eventType, String deploymentId, Func`1 op) in Mendix.Modeler.Analytics\RuntimeProfilingAnalyticsScope.cs:line 42    at Mendix.Modeler.Analytics.RuntimeProfilingAnalyticsScope.Execute(IAnalyticsEventManager eventManager, String eventType, String deploymentId, Action op) in Mendix.Modeler.Analytics\RuntimeProfilingAnalyticsScope.cs:line 57    at Mendix.Modeler.M2EEConnector.StartupManager.PerformStartup(StartupInfo info, String deploymentId, IM2EEClient client) in Mendix.Modeler.M2EEConnector\StartupManager.cs:line 38    at Mendix.Modeler.M2EEConnector.RuntimeController.Start(StartupInfo info, String deploymentId, LogLevel autoSubscribeLogLevel) in Mendix.Modeler.M2EEConnector\RuntimeController.cs:line 146    at Mendix.Modeler.Deployment.Local.LocalRunner.<>c__DisplayClass97_0.<RuntimeLaunched>b__1() in Mendix.Modeler.Deployment\Local\LocalRunner.cs:line 435    at Mendix.Modeler.Utility.BackgroundUtil.<>c__DisplayClass1_0`1.<Do>b__0(Object s, DoWorkEventArgs e) in Mendix.Modeler.Utility\BackgroundUtil.cs:line 29    at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)   and I do not know now to solve it now. Thanks a lot in advance.
asked
1 answers
0

Few things you can try to solve this issue: 

The error could be due to a port conflict, where the port Mendix is trying to use is already occupied by another application.

  • Open your Mendix Studio Pro project.
  • Go to Run Locally settings.
  • Try changing the port number to a different value (for example, 8081 or 8082).
  • Restart the application.

Sometimes, cached or temporary files can cause issues with running the app locally.

  • Close Mendix Studio Pro.
  • Navigate to the C:\Users\[YourUserName]\AppData\Local\Mendix\ directory.
  • Delete the contents of the modeler and M2EE folders.
  • Reopen Mendix Studio Pro and try running the app again.

There might be an issue in the app configuration or missing dependencies.

  • Check the domain model entities generated using Maia for any configuration issues. Ensure that there are no circular references or missing attributes.
  • Make sure that the overview pages generated by Maia are correctly configured and that any references or microflows involved are set up correctly.

After all these 

  • Clean your project by selecting Build > Clean in Mendix Studio Pro.
  • Rebuild the project and then attempt to run locally again.
answered