Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

NullReferenceException occurs when you run TestFederationTrust in Exchange Server 2019 and 2016


View products that this article applies to.

Symptoms

The following NullReferenceException is shown when you run the Test-FederationTrust cmdlet in Microsoft Exchange Server 2019 or Exchange Server 2016. This issue occurs when a new certificate for the federation trust is enabled, and the previous certificate has expired.

WARNING: An unexpected error has occurred and a Watson dump is being generated: Object reference not set to an instance
of an object.
Object reference not set to an instance of an object.
+ CategoryInfo          : NotSpecified: (:) [Test-FederationTrust], NullReferenceException
+ FullyQualifiedErrorId : System.NullReferenceException,Microsoft.Exchange.Management.SystemConfigurationTasks.TestFederationTrust

↑ Back to the top


Cause

This issue occurs because a thumbprint property is still printed if null is assigned to orgPrevPrivCertificate when calling this.GetOrganizationCertificate in this situation.

↑ Back to the top


Resolution

To fix this issue, install one of the following updates:

↑ Back to the top


References

Learn about the terminology that Microsoft uses to describe software updates.

↑ Back to the top


Keywords: CI121916, kbHotfixAuto, nullregerenceexception occurs when running testfederationtrust

↑ Back to the top

Article Info
Article ID : 4570255
Revision : 5
Created on : 9/15/2020
Published on : 9/15/2020
Exists online : False
Views : 275