Migrating From MDriven .NET Framework to .NET Core
This page was created by Charles@mdriven.net on 2024-12-04. Last edited by Edgar on 2025-01-20.

Migrating from .NET framework to .NET Core provides a multitude of advantages that can significantly enhance you application's performance, scalability and deployment flexibility.

Procedure

  • Backup admin db
  • Backup current running Model
  • Backup Model data
  • Backup Turnkey settings

Open the MDriven Designer

Click on the Cloud Connection Icon 2024-12-04 22h29 51.png to open the Cloud Connection Dialog.

Within the Cloud Connection dialog goto Active MDriven Server tab

Enter Credentials for connecting to your MDriven Server the fields: Name(User Name), Password and Server(MDriven Server URL) are required.

2024-12-04 18h43 07.png

Back Up Admin db

In the Cloud Connection dialog, go to Admin DB Access and Swap tab

1. Start by creating a snapshot of the Admin db

An error message of "502 Bad Gateway expected due to server forced restart" will be displayed in the MDriven Server status section. This is normal.

2. Check Server Status to make sure MDriven Server is up and running. If the MDriven Server does not start to run after some seconds, then restart the MDriven Server.

3. Download the created snapshot of the Admin db

2024-12-04 22h51 01.png

Back Up Current Running Model

Prepare a copy of the version of the Model currently running on the MDriven Server

If not sure, download the Model on the MDriven Server using the MDriven Designer Cloud Connection Dialog

Cloud-connection-dialog-download-model.png


Backup you application data using the Migrate feature of the MDriven Designer

Back up the Turnkey Settings located in site\wwwroot\App_Data\TurnkeySettings.xml

if MDriven is running on Azure then using this page to setup the latest MDriven Turnkey and Server on Azure

What has Changed in App Settings

  • Credentials for connecting to the MDriven Server within the Turnkey app are now in App_Data/MDrivenServerOverride.xml file
  • Turnkey settings are now set in App_Data/TurnkeySettingsOverride.xml file.

Upload the model backup

Upload the model data backup

Upload the admin db backup

NOTE: After uploading the admin db backup make sure the previous credentials for connecting to MDriven Server from old app are used in MDrivenServerOverride file otherwise Turnkey app ill be blocked from connecting to the MDrivenServer

Incase Turnkey is blocked from connecting, use PwdReset to set new password for a user.