Microsoft KB Archive/942029

= Error message when you try to use the Exchange Server ActiveSync Web Administration tool to delete a partnership or to perform a Remote Wipe operation in Exchange Server 2003 Service Pack 2: &quot;(401) Unauthorized&quot; =

Article ID: 942029

Article Last Modified on 10/9/2007

-

APPLIES TO


 * Microsoft Internet Information Services 6.0

-



SYMPTOMS
When you try to use the Microsoft Exchange Server ActiveSync Web Administration tool to delete a partnership with a mobile device or to perform a Remote Wipe operation on a mobile device, you receive the following error message:

Failed to access user's Mailbox, verify that the mailbox and user account are enabled and functional.

Server Error in '/MobileAdmin' Application.

The remote server returned an error: (401) Unauthorized.

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.Net.WebException: The remote server returned an error: (401) Unauthorized.

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: [WebException: The remote server returned an error: (401) Unauthorized.] System.Net.HttpWebRequest.CheckFinalStatus +680 System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult) +74 System.Net.HttpWebRequest.GetRequestStream +234 Microsoft.Exchange.AirSync.Admin.Mailbox.propFindRequest(String deviceUri) +240 Microsoft.Exchange.AirSync.Admin.Mailbox.getDevices +194 Microsoft.Exchange.AirSync.Admin.Devices.refreshDevicesTable +135 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.2300; ASP.NET Version:1.1.4322.2300

Even after you try the resolution that is described in Microsoft Knowledge Base article 916960, you still receive this error message.



CAUSE
This problem occurs because the authentication method of the Web server is not configured correctly.



RESOLUTION
To resolve this problem, follow these steps:  Start Internet Information Services (IIS) Manager. To do this, click Start, click Run, type inetmgr.exe, and then click OK. In IIS Manager, expand the server, expand Web sites, expand Default Web Site, right-click MobileAdmin, and then click Properties. In the MobileAdmin Properties dialog box, click the Directory Security tab. In the Authentication and access control area, click Edit. In the Authentication Methods dialog box, type a slash mark ( / ) in the Default Domain box, and then click OK. In the Secure communications section, click Edit.</li> Verify the Secure Sockets Layer (SSL) settings, and then click OK.</li> In the MobileAdmin Properties dialog box, click OK.</li> Right-click Default Web Site, and then click Stop.</li> Right-click Default Web Site, and then click Start.</li> Click Start, click Run, type iisreset, and then click OK.</li> In Windows Internet Explorer, open the following Web page:

https:// /mobileadmin

</li> Enter the mobile user alias, and then click Search.</li></ol>

You can see the device in the list. If you still experience the problem, verify the settings in the ExAdmin Properties dialog box. To do this, follow these steps:
 * 1) Start IIS Manager. To do this, click Start, click Run, type inetmgr.exe, and then click OK.
 * 2) In IIS Manager, expand the server, expand Web sites, expand Default Web Site, right-click ExAdmin, and then click Properties.
 * 3) In the ExAdmin Properties dialog box, click the Directory Security tab.
 * 4) In the Secure communications section, click Edit.
 * 5) Click to clear the Require secure channel (SSL) check box.
 * 6) Right-click Default Web Site, and then click Stop.
 * 7) Right-click Default Web Site, and then click Start.

Note You do not have to restart IIS.

<div class="moreinformation_section">

Steps to reproduce the problem
<ol> Install Microsoft Windows Small Business Server 2003 (Windows SBS) and Microsoft Exchange Server 2003 Service Pack 2.</li> Download the Microsoft Exchange Server ActiveSync Web Administration Tool. To do this, visit the following Microsoft Web site:

http://www.microsoft.com/downloads/details.aspx?familyid=e6851d23-d145-4dbf-a2cc-e0b4c6301453&displaylang=en

Then, install the software.</li> In Windows Internet Explorer, open the following Web page :

https:// /mobileadmin

</li> Enter the mobile user alias, and then click Search.</li></ol>

<div class="references_section">