This error occurs when GN4 cannot connect to the database.
A typical reason can be that the SQL server is down or inaccessible. Check if the SQL service is running on the SQL host. Should the service be running, try to connect with the SQL Management Studio and check if it responds correctly. If both tests passed, then look for an error in the name of server or database as defined in web.config.
To correct this error
Open the web.config, typically in C:\tera\GN4\Web\GNPortal, and then look for the appSettings section.
Should you find something like:
<appSettings file="..\..\appSettings.xml">
then, look at the appsettings.xml file two levels above (e.g. C:\tera\GN4\) and then review the server and database settings and make sure that they are pointing to the appropriate server, with the appropriate user name, password and the database name.
<!-- Database server -->
<add key="Db.Server" value="BRUNONB\SQLEXPRESS" />
<!-- Database user -->
<add key="Db.User" value="xxxx" />
<!-- Database password -->
<add key="Db.Pwd" value="yyyy" />
<!-- Database name -->
<add key="Db.Name" value="GN4" />
Recycle the application pool to apply changes.
If the error persists, it means that GN4 Web server for some reason can not access to the GN4 SQL server - check the network status and permissions.