MDrivenServer, Lost password or locked out

If you have been locked out or forgot the password to your MDrivenServer, you can stop the web server and copy the database file and edit it.

  • On a Windows installation, stop the web server using IIS Manager.
  • On Azure, stop your site and then use the Advanced Tools to download the database file

The database file is located in __MDrivenServer/App_data/DatabaseCompact.sdf

Once downloaded, use the procedure MDrivenServer,_opening_the_built-in_database to open the database.

In the table Admin_ASP_Users, set IsLockedOut to 0 (false) if you have been locked out.

To reset the password, copy the Password field from another installation that you know the password for, and you will have set it.

Once done, upload the database file again and restart the website or IIS.

Also, reset pwd with a PwdReset.txt file on the server: MDrivenServer,_opening_the_built-in_database

Init logic - MDrivenServer

When the MDrivenServer starts, it looks for an App_Data/DatabaseCompact.sdf. If none is found, it copies App_Data/DatabaseCompact_TkStartDb.sdf to App_Data/DatabaseCompact.sdf and tries again.

The App_Data/DatabaseCompact_TkStartDb.sdf is the template DB used for new installations.

It has a user named "a" with pwd=123456. The pwd is replaced by the Portal in cloud scenarios.

See also: MDrivenServer,_opening_the_built-in_database

This page was edited 34 days ago on 06/17/2024. What links here