The application could not connect to the database, please check the connection string in the web.config file and SQL server availability.
Original error:
[ObjectGenerator.RegisterDefaultFactory]: You cannot change the default type of the generated objects after some objects were created by the generator. 4 objects were already created by this generator. To fix this problem, run the registration sooner in the application life cycle or create new objects later.