ADFS error 102 and 202

Gudmundur Thordarson 20 Reputation points
2023-03-15T10:49:22.62+00:00

Hi, I have been troubleshooting this here for days without any progress,

ADFS running on Windows server 2016, ADFS is using SQL as configuration database, 2 nodes in the farm.

I have enabled adfs trace and nothing suspicous to see there,

I have checked access to private keys, ports are listening, ADFS service is started, but url to adfs metadata is not working, I get connection reset and I can not browse to idpinitatedsignon page ,

ADFS management console is working fine ,

I have checked bindings and all look ok to me. I have run netstat -anon and the only pid listening on port 443 is ADFS

Any help is greatly appreciated.

Kind regards

Gudmundur

but in ADFS admin log I get these errors , its event id 102, followed by event id 202 adn then followed again by event id 102 ,

There was an error in enabling endpoints of Federation Service. Fix configuration errors using PowerShell cmdlets and restart the Federation Service.

 

Additional Data 
Exception details: 
System.ServiceModel.AddressAlreadyInUseException: HTTP could not register URL https://+:443/adfs/services/proxytrustpolicystoretransfer/ because TCP port 443 is being used by another application. ---> System.Net.HttpListenerException: The process cannot access the file because it is being used by another process
   at System.Net.HttpListener.AddAllPrefixes()
   at System.Net.HttpListener.Start()
   at System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
............................................................................................................................................................

The Federation Service SAML protocol listener  could not be opened.

 

Additional Data 
Exception details: 
System.ServiceModel.AddressAlreadyInUseException: HTTP could not register URL https://+:443/adfs/services/proxytrustpolicystoretransfer/ because TCP port 443 is being used by another application. ---> System.Net.HttpListenerException: The process cannot access the file because it is being used by another process
   at System.Net.HttpListener.AddAllPrefixes()
   at System.Net.HttpListener.Start()
   at System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()

..................................................................................................................................................................

There was an error in enabling endpoints of Federation Service. Fix configuration errors using PowerShell cmdlets and restart the Federation Service.

 

Additional Data 
Exception details: 
System.ServiceModel.AddressAlreadyInUseException: HTTP could not register URL https://+:443/adfs/services/proxytrustpolicystoretransfer/ because TCP port 443 is being used by another application. ---> System.Net.HttpListenerException: The process cannot access the file because it is being used by another process
   at System.Net.HttpListener.AddAllPrefixes()
   at System.Net.HttpListener.Start()
   at System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()

....................................................................................................................

Invoke-WebRequest "https://adfshostname/FederationMetadata/2007-06/FederationMetadata.xml"

Invoke-WebRequest: The response ended prematurely.

connection reset

Microsoft Security Active Directory Federation Services
0 comments No comments
{count} votes

Accepted answer
  1. Support Account 91 Reputation points
    2023-03-16T08:39:07.89+00:00

    Hi. You need to verify the port configuration:-

    Get-AdfsProperties | Select httpsPort, TlsClientPort

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.