The application could not connect to the database, please check the connection string in the web.config file and SQL server availability.

Original error:

Failed to generate a user instance of SQL Server due to a failure in creating user instance event. The connection will be closed.