徵狀
升級至Microsoft Exchange Server 2019年的累積的更新 3或步驟的 Exchange Server 2016年的累積更新 14之後,您會收到下列錯誤訊息:
記錄檔名稱: 應用程式
來源: MSExchange 自動探索
日期時間的日期:
事件識別碼: 1
工作類別: Web
層級: 錯誤
關鍵字: 傳統
使用者: n/A
電腦:電腦名稱
描述:
未處理的例外狀況"物件參考未設定至物件的執行個體 」。
堆疊追蹤: 在 Microsoft.Exchange.AutoDiscoverV2.FlightSettingRepository.GetHostNameFromVdir (ADObjectId serverSiteId,字串的通訊協定)
在 Microsoft.Exchange.AutoDiscoverV2.AutoDiscoverV2.ExecuteOnPremEndFlow (AutoDiscoverV2Request 要求)
在 Microsoft.Exchange.AutoDiscoverV2.AutoDiscoverV2.Execute (AutoDiscoverV2Request 要求,ITenantRepository tenantRepository)
在 < ProcessRequest > b__0() Microsoft.Exchange.AutoDiscoverV2.AutoDiscoverV2HandlerBase.<> c__DisplayClass11_0。
在 Microsoft.Exchange.Common.IL.ILUtil.DoTryFilterCatch (動作 tryDelegate、 Func'2 filterDelegate,動作 ' 1 catchDelegate)
因應措施
若要解決這個問題,您應該檢查下列的虛擬目錄的外部 URL:
取得 WebServicesVirtualDirectory-伺服器 YourExchangeServerName |佛羅里達奧蘭多市名稱 * url *
取得 AutodiscoverVirtualDirectory-伺服器 YourExchangeServerName |佛羅里達奧蘭多市名稱 * url *
取得 ActiveSyncVirtualDirectory-伺服器 YourExchangeServerName |佛羅里達奧蘭多市名稱 * url *
外部的 URL 是空白的如果指派的值對應到公用 FQDN 的外部 url。
範例:
Step1:使用下列的指令程式,以檢查自動探索 URL。
取得 AutodiscoverVirtualDirectory-伺服器 YourExchangeServerName |佛羅里達奧蘭多市名稱 * url *
名稱: 自動探索 (預設的網站)
InternalUrl:
ExternalUrl:
如果 ExternalUrl 是空的請將對應的值指派給公用 FQDN 的自動探索的外部 url 中使用 step2。
Step2:使用下列的指令程式,以設定自動探索的外部 URL。
取得 AutodiscoverVirtualDirectory-伺服器 YourExchangeServerName | 組 AutodiscoverVirtualDirectory-ExternalUrl https://autodiscover.FQDN/Autodiscover/Autodiscover.xml
注意:
-
只有當您新增新的 PowerShell 工作階段 (不 EMS) 的 PSSnapin Exchange Server 2019年、 Exchange Server 2016,以及 Exchange Server 2013年,ExternalUrl 是可存取。
-
如果您不要在新的 PowerShell 工作階段中新增 PSSnapin,您可能會收到錯誤訊息。比方說,您不需將 PSSnapin 新增新的 PowerShell 工作階段中執行下列指令程式:
取得 AutodiscoverVirtualDirectory-伺服器 $env: 電腦名稱 |設定 AutodiscoverVirtualDirectory-ExternalUrl"https://autodiscover.365labs.net/Autodiscover/Autodiscover.xml"
然後,您會收到下列錯誤訊息:
參數找不到符合 'ExternalUrl' 的參數名稱。
+ CategoryInfo: InvalidArgument: (:)[設定-AutodiscoverVirtualDirectory],ParameterBindingException
+ 第 NamedParameterNotFound FullyQualifiedErrorId: 組 AutodiscoverVirtualDirectory
+ PSComputerName: ex15.365labs.net
若要解決這個問題,您應該執行下列命令,讓 ExternalUrl 能夠存取:
PS C:\PowerShell > 加入 PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
參考
深入了解 術語 ,Microsoft 會使用描述軟體更新。
其他相關資訊
Microsoft 已發現此問題,並可供使用時,將會公佈更多資訊本文中。