“/ MobileAdmin”应用程序中的服务器错误

我在StackOverflow上发布了这个,但是看起来在这里更合适。

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

我最近通过ActiceSync将Android设备连接到Exchange 2003,并且在查找与ActiveSync设备关联的邮箱时,MobileAdmin应用程序( https:// server / mobileadmin )崩溃。 当我查找与邮箱没有关联的邮箱时,只会回复“找不到此邮箱的设备”。 我search了search引擎和论坛,并按照下面的知识库中的说明,无济于事。

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请求,而不是在内部parsing服务器名称“INTERNAL_SERVERNAME”。

此问题已通过将127.0.0.1“mail.yourdomain.com”添加到本地服务器的HOST文件中解决,因此它不会在本地环境之外进行任何DNS查询。

2)IISconfiguration有一个主机名应设置为空时。 主机名已被删除使用命令:

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