Exchange-2003

“/MobileAdmin”應用程序中的伺服器錯誤

  • November 9, 2010

我在 StackOverflow 上發布了這個,但這裡似乎更合適。

https://stackoverflow.com/questions/3523089/server-error-in-mobileadmin-application

我最近通過 ActiceSync 將 Android 設備連接到 Exchange 2003,當我查找與 ActiveSync 設備關聯的郵箱時, MobileAdmin 應用程序 ( https://server/mobileadmin ) 崩潰。當我查找未與郵箱關聯的郵箱時,它只是回复“未找到此郵箱的設備”。我搜尋了搜尋引擎和論壇,並按照以下 KB 中的說明進行操作,但無濟於事。

http://support.microsoft.com/kb/916960

3 台設備(Droid、Droid X 和 Droid 2)正在正常發送/接收郵件,我根本無法訪問顯示設備和郵箱關聯並允許您發出遠端擦除命令的 MobileAdmin Web 應用程序。

錯誤報告如下:

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 


[NullReferenceException: Object reference not set to an instance of an object.]
  Microsoft.Exchange.AirSync.Admin.Mailbox.propFindRequest(String deviceUri) +391
  Microsoft.Exchange.AirSync.Admin.Mailbox.getDevices() +372
  Microsoft.Exchange.AirSync.Admin.Devices.refreshDevicesTable() +138
  Microsoft.Exchange.AirSync.Admin.Devices.Page_Load(Object sender, EventArgs e) +190
  System.Web.UI.Control.OnLoad(EventArgs e) +67
  System.Web.UI.Control.LoadRecursive() +35
  System.Web.UI.Page.ProcessRequestMain() +750




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2443; ASP.NET Version:1.1.4322.2460

以下步驟為我解決了這個問題:

  1. MobileAdmin 查詢在防火牆的外部 IP 上對“mail.yourdomain.com”進行 DNS 請求,而不是在內部解析伺服器名稱“INTERNAL_SERVERNAME”。

此問題已通過將 127.0.0.1 “mail.yourdomain.com” 添加到本地伺服器的 HOST 文件中得到解決,因此它不會在本地環境之外進行任何 DNS 查詢。

  1. IIS 配置設置了主機名,而該主機名應為空白。使用以下命令刪除了主機名:

C:\inetpub\admscripts> cscript adsutil.vbs 刪除 w3svc/1/SetHostName

引用自:https://serverfault.com/questions/172438