Hi Reza, when you get this error, it typically happens when your database has not been updated.
If this is the case, you usually have a warning in your login-screen, about here:
You could also check if the database version matches the application version.
the revision of the codebase is here:
Whereas you can find the database revision in the Expression debugger using:
{versioninfo, revision}
As you can see, in my application they are the same.
This error is rare but can happen in two cases:
- When you use the database copy tool, and copy the database from a different revision. For example, when you copy the Production database in revision 10 to Acceptance on revision 11, this occurs
- When you installation failed on the update script, but you still manage to log in.
In case (1), you should manually run updatedb. This goes as follows:
- Go to Deployment
- Send a maintenance package to your application
- Go to the installer
- Start the maintenance flow “developer mode”
- Access your application using: default.aspx?updatedb=yes
- Finish the maintenance package
In case of (2), find out why the update script failed. Abort and revert the installation, fix the update script and deploy again.