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.

Open the MDriven Designer

Click on the Cloud Connection Icon 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

Backing Up the Admin db

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

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.

Check Server Status to make sure MDriven Server is up and running. if the server does not start to run after some seconds and restart server.

Download the created snapshot of the Admin db

Backing Up the Current Version of the 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

Backup you application data using the Migrate feature of the 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.