AADFS version 2.3.0 is the newest version of the AADFS installer. Recently we have been experiencing problems with older installs of AADFS not supporting TLS version 1.2 and in this case, the following FATAL exception is logged.
FATAL: Remote server exception during DeleteHosts request: The underlying connection was closed: An unexpected error occurred on a send.
System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.Receive(Byte buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
This FATAL error is in my Service log, how do I solve this
Check the AADFS version and if it is prior to version 2.3.0 it needs to be updated.
- Download the newest version found in the install AADFS article
- Stop the AADFS service
- Create a copy of the config.json file in the AppData folder
- Uninstall AADFS service
- Install AADFS 2.3.0
- Replace the autogenerated config.json with the old one
- Run AADFS service