...
Info |
---|
Starting from version 5.1.5 it is only possible to access the WebAdmin pages from localhost. It is possible to make temporary, time limited, exception. |
Problem description
Web viewer does not start or gives an error when signing in users.
Web viewer log file shows an error similar to the below.
Code Block |
---|
AssertWeb Error: 0 : System.InvalidOperationException: The model backing the 'ServerContext' context has changed since the database was created. Consider using Code First Migrations to update the database (http://go.microsoft.com/fwlink/?LinkId=238269). |
Root cause
Application has been updated and the new version of the application requires a new database for users etc. Database need to be migrated.
Step-by-step guide
Follow these steps to migrate server database.
Create a backup copy of the server database using SQL Management Studio's tools for this.
Sign in to the ServerAdmin page of the web viewer: http://localhost/AssertWeb/en/<site>/WebAdmin
Choose Database migration. Note that Server and Asset databases have separate icons.
The page will list the needed migrations.
Click on "Update server database"
For version 5.1, if Assets are configured, click on “Asset database” icon. Select “Update database“.
Verify successful migration by signing in to Web Viewer as admin and look at each settings tab to see that information loads correctly.
Info |
---|
If needed to access WebAdmin from outside localhost, use profile.config to temporarily turn on access externally. |
...