Please also check the event log of the Database Server.
maybe you did not grant the Apppool Account enough rights.
You get exactly the same error as described above, if the apppool account does not have enough rights.
Make sure, they have the LearningStore Role for this database in SQL Studio user mapping.
Eventlog Database Server: Failure Audit Log
Login failed for user 'domain\apppoolaccount'. [CLIENT: XXX]
For more information, see Help and Support Center at