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 here 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 25 days ago on 11/28/2024. What links here