Instead of a login page, the user is presented with:
There was a problem accessing the site. Try to browse to the site again.
If the problem persists, contact the administrator of this site and provide the reference number to identify the problem.
Reference number: 7aaab8f7-85ed-4910-9f4f-d105100cb604
Going to Administrative Tools -> Services reveals that AD FS 2.0 service is not started. Trying to start the service manual results in:
Event 220 appears in AD FS 2.0 Event Viewer logs:
The Federation Service configuration could not be loaded correctly from the AD FS configuration database.
Event 352 appears in AD FS 2.0 Event Viewer logs:
A SQL operation in the AD FS configuration database with connection string Data Source=\.pipemssql$microsoft##sseesqlquery;Initial Catalog=AdfsConfiguration;Integrated Security=True failed.
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Start “Windows Internal Database” service.
Now you can start the “AD FS 2.0 Windows Service”.
I searched for ages for a resolution to Event 352 and no-one said that you needed to start “Windows Internal Database”. I have no idea why it was stopped, but when I started it, ADFS worked again 🙂 Thanks mate!