MSExchange Autodiscover Error 1 After Exchange 2016 CU23

Copper Contributor

Hi, After install The latest CU 23 for Exchange 2016 and Latest Security Update KB5014261 the Event Viewer show this error

 

Unhandled Exception "Object reference not set to an instance of an object."
Stack trace:    at Microsoft.Exchange.AutoDiscoverV2.FlightSettingRepository.GetHostNameFromVdir(ADObjectId serverSiteId, String protocol)
   at Microsoft.Exchange.AutoDiscoverV2.AutoDiscoverV2.ExecuteOnPremEndFlow(AutoDiscoverV2Request request)
   at Microsoft.Exchange.AutoDiscoverV2.AutoDiscoverV2.Execute(AutoDiscoverV2Request request, ITenantRepository tenantRepository)
   at Microsoft.Exchange.AutoDiscoverV2.AutoDiscoverV2HandlerBase.<>c__DisplayClass11_0.<ProcessRequest>b__0()
   at Microsoft.Exchange.Common.IL.ILUtil.DoTryFilterCatch(Action tryDelegate, Func`2 filterDelegate, Action`1 catchDelegate)

 

1.PNG

 

How can solve this Issue?

 

Best Regards

1 Reply
Hi Check below
Get-WebServicesVirtualDirectory -server YourExchangeServerName | fl name, *url*

Get-AutodiscoverVirtualDirectory -server YourExchangeServerName | fl name, *url*

Get-ActiveSyncVirtualDirectory -server YourExchangeServerName | fl name, *url*
If the external URL is blank, assign a value to the external URL that corresponds to the public FQDN.
Get-AutodiscoverVirtualDirectory -Server YourExchangeServerName |set-AutodiscoverVirtualDirectory -ExternalUrl https://autodiscover.FQDN/Autodiscover/Autodiscover.xml
Regards