Issue connecting to AD FS configuration database

active-directoryadfsserviceservice-accounts

I just installed the AD FS role on my DC using the Windows Internal Database. All seemed to be fine after I set everything up, however, once I restarted my DC, when attempting to load the AD FS manager, I get the error:

An error occurred during an attempt to access the AD FS configuration database:
Error message: ADMIN0017: An exception occurred while connecting to the configuration service. The configuration service
URL 'net.tcp://localhost:1500/policy' may be incorrect or the AD FS 2.0 Windows Service is not running.

When checking the services, I notice the AD FS service is in fact stopped. When attempting to start this manually, I get the error:

Windows could not start the Active Directory Federation Services service on Local Computer.
Error 1064: An exception occurred in the service when handling the control request.

I'm not entirely sure what to do here. I've been reading it may have to do with the service account used to run the service, but I've made sure the account is in good order (unlocked, correct password, etc.). I've also read you have to explicitly add this service account to the list of accounts allowed to log on as a service in the relevant GPO, which I have.

Any help is greatly appreciated.

Best Answer

I got exactly the same error after we done the migration of the ADFS VM through VMware SRM to another data-center. the environment is Windows 2012 R2 ADFS 3.0

things I have checked from the ADFS server and it worked for me

  1. Check the Windows firewall is "turned off" for "Domain Network"
  2. Check the connectivity (by ping AD IP or name) to the AD servers (this is crucial for the ADFS to work) also check the site replication between the AD servers if you have multiple AD servers (for the DNS gets the computer name update)
  3. Go to services console double click "Windows Internal Database" Services remove the ADFS services account password and reenter the password again and start the service.
  4. Follow Step 3 for the "Active Directory Federation Services" also.

Once both the services are on the ADFS will work.

For further troubleshooting you have to check the ADFS event log from the event viewer.

I hope this helps to resolve your problems. if you find any other method for your scenario please update.