Fix Exchange Hybrid Federation Trust Connection Closed Errors
Question details
Resolve a connection closed error that prevents the Exchange Hybrid Configuration Wizard from creating a federation trust.

- Product
- Microsoft Exchange Server Hybrid Configuration Wizard
- Device & OS
- Windows Server (version not provided)
- Scenario
- Creating a federation trust during Exchange hybrid configuration.
- Observed behavior
- The wizard cannot retrieve the federation metadata document and reports that the connection closed unexpectedly, even though the metadata URL can be opened.
Identify the Exchange Server and Windows Server versions, the affected server, and the federation metadata URL in the error. Review Microsoft's Exchange TLS guidance for those versions and arrange a maintenance window if configuration changes require a restart.
Configure TLS 1.2 for Exchange Server and Windows
Use this approach when the metadata URL is reachable but the federation trust connection still closes.
Opening the metadata URL in a browser does not prove that Exchange and its .NET components can negotiate the same TLS connection. Protocol, cipher suite, and .NET settings can differ by application and server configuration.
On the affected Exchange server, compare its Exchange build, Windows version, TLS protocols, and cipher suites with Microsoft's current Exchange TLS guidance.
Use Microsoft's version-specific guidance to configure TLS 1.2 and any required Windows registry and .NET Framework settings. Ensure the server has compatible cipher suites enabled.
Restart the server as directed by the guidance, then open the Hybrid Configuration Wizard and run the configuration again.

Check federation metadata access and hybrid prerequisites
Use these checks if TLS settings are already correct or the wizard still fails after a restart.
Work with Office documents while troubleshooting Exchange
WPS Office is a free, lightweight, easy-to-use alternative for working with documents, spreadsheets, and presentations. Its familiar interface and Microsoft Office format compatibility make migration easier, although it does not fix Exchange federation or TLS configuration.

Frequently Asked Questions
Why does federation trust fail when the metadata URL opens in a browser?
The browser and Exchange components may use different TLS or proxy settings. Check the affected server's TLS 1.2, cipher suite, .NET, and WinHTTP configuration against Microsoft's Exchange TLS guidance.
How do I check the server's WinHTTP proxy?
On the affected Exchange server, open a command prompt and run netsh winhttp show proxy. Compare the result with your network's requirements for reaching the federation metadata endpoint.
Can I test a federation trust from Exchange?
If a federation trust already exists, run Test-FederationTrust in the Exchange Management Shell. Review the results alongside the public federation domain proof TXT record and certificate configuration.
Does enabling MRS Proxy fix the federation metadata error?
Not necessarily. MRS Proxy is relevant to hybrid mailbox migration, while metadata retrieval can fail because of TLS, certificates, connectivity, or proxy settings. Check MRSProxyEnabled with Get-WebServicesVirtualDirectory, but investigate the metadata connection separately.




