Microsoft KB Archive/330463

= How to troubleshoot server ActiveSync HTTP error codes =

Article ID: 330463

Article Last Modified on 10/25/2007

-

APPLIES TO


 * Microsoft Mobile Information Server 2001 Enterprise Edition
 * Microsoft Mobile Information Server 2002 Enterprise Edition
 * Microsoft Exchange 2000 Server Standard Edition
 * Microsoft Exchange 2000 Enterprise Server
 * Microsoft Exchange Server 2003 Standard Edition
 * Microsoft Exchange Server 2003 Enterprise Edition

-



This article was previously published under Q330463





INTRODUCTION
When you synchronize a Pocket PC device with a computer that is running Microsoft Mobile Information Server, you may receive a synchronization error code. Or, the NexTags log file may list error codes. This article describes some of the common HTTP_ errors and the methods to resolve these errors.



MORE INFORMATION
The following error codes are standard HTTP errors:  HTTP_401

This error code corresponds to the E_HTTP_DENIED error. This is described as the following error message:

Unable to connect to sync server due to authentication failure. Check your connection configuration.

This issue may occur if the credentials that are provided to access the server are incorrect. Or this issue may occur if the user is not enabled for synchronization.

To troubleshoot this issue, follow these steps:  On the Pocket PC device, clickStart, clickActiveSync, clickOptions on the Tools menu, and then click the Server tab. Make sure that the correct server information appears in the Server Name box. Click theAdvanced tab, and then make sure that the correct user name, password, and domain information is located in the corresponding boxes. On the domain controller, right-click the user account, and then click Properties. Click the Wireless Mobility tab, and then click to select the Allow this user to synchronize Microsoft Exchange data with their device using Mobile Information Server check box. Click Apply, and then click OK.</li></ol> </li>  HTTP_404

This error code corresponds to the E_HTTP_NOT_FOUND error. This error code may not appear on the Pocket PC device. However, it may appear in the NexTags log file when you use the NexTags tool to configure the logging to be generated by the Server ActiveSync component of Outlook Mobile Access.

The Pocket PC Sync Log displays the following information: <pre class="fixed_text"> =-=-=-= Server Response =-=-=- HTTP/1.1 500 Internal Server Error The NexTags log file displays information that is similar to the following: <pre class="fixed_text">04/23/02 11:34:51 Dump of HTTP request. PROPFIND /exchange/Firstname.Lastname2/ HTTP/1.1 Host: Server1 User-Agent: Microsoft-Server-ActiveSync/1.0.1806.0 Brief: t   Accept-Language: en-us Content-Type: text/xml Depth: 0 Content-Length: 250 Connection: Keep-Alive

04/23/02 11:34:52 Dump of HTTP response. HTTP/1.1 404 Resource Not Found Server: Microsoft-IIS/5.0 Date: Tue, 23 Apr 2002 11:34:52 GMT Connection: close WWW-Authenticate: Negotiate Content-Type: text/html Content-Length: 53 MS-WebStorage: 6.0.5762 The user account information may be similar to the following:

ProxyAddresses:

SMTP:Firstname.Lastname2@example.com;

smtp:Firstname.Lastname@domain.example.com;

smtp:flastname-w@domain.example.com;

x500:/O=ORG/OU=FIRST ADMINISTRATIVE GROUP/CN=RECIPIENTS/CN=flastname;

x500:/O=ORG/OU=FIRST ADMINISTRATIVE GROUP/CN=RECIPIENTS/CN= flastname -w; X500:/O=Exchange/OU=Mobile/cn=Recipients=/cn=lastname;

X400:c=us;a= ;p=org;o=Exchange;s=Lastname;g=Firstname;

userPrincipalName: flastname-w@domain.example.com;

mail: Firstname.Lastname2@example.com;

The &quot;HTTP_404 - Resource Not Found&quot; error message indicates that an issue may exist with the user account. To troubleshoot this issue, follow these steps: <ol> Make sure that the user has an e-mail address that matches the Exchange default recipient policy and is the same as NexTags log reports. For example,

NexTags log: PROPFIND /exchange/Firstname.Lastname2/ HTTP/1.1

Default Recipient Policy: @ 

This information indicates that the wireless user   must have an SMTP address of  . The Server ActiveSync uses the bit to the left of the @ symbol in the primary SMTP address, appends the default recipient policy, and then searches for that user and their associated mailbox.</li> Make sure that the user can log on to the mailbox by using Microsoft Outlook Web Access (OWA).</li></ol> </li>  HTTP_500

This error code corresponds to the E_HTTP_SERVER_ERROR error. This is described as the following error message:

Synchronization failed due to an error on the server. Try again.

This behavior may occur for one or more of the following reasons: <ul> The Internet Information Service is unavailable.</li> Windows Integrated Authentication is not enabled on the Exchange Server virtual directory of the server where the mailbox of the user resides.</li> Synchronization is tried when the mailbox is being moved.</li></ul>

To resolve this issue, use one of the following methods: <ul> Retry the synchronization later.</li> Restart the Exchange server to reset user authentication.</li></ul>

Additionally, when you use a Pocket PC device together with Microsoft Exchange 2003, the NexTags.log file displays information that is similar to the following: <pre class="fixed_text">02/16/05 12:05:42 Dump of HTTP response for user UserName HTTP/1.1 400 Bad Request Content-Type: text/html Date: Wed, 16 Feb 2005 12:05:37 GMT Connection: close Content-Length: 46 Bad Request (Request Header Too Long) Typically, this issue occurs when the user is a member of more than 120 groups in Active Directory. In this case, the user may be unable to authenticate because the Kerberos token that is generated during the authentication attempt has a fixed maximum size. When the buffer that is determined by the MaxTokenSize registry value is not large enough, the user cannot be authenticated. Then, the user may receive the following error message:

Out of memory

Note In the original release of Microsoft Windows 2000 Server, the MaxTokenSize value is 8,000 bytes. In Windows 2000 Server with Service Pack 2 (SP2) and in Microsoft Windows Server 2003, the MaxTokenSize value is 12,000 bytes.

To resolve this issue, use the Tokensz.exe utility to determine the MaxTokenSize value of a user. If the Max Token size is greater than 12,000,set the MaxTokenSize value to a bigger value. For more information about how to use the Tokenz.exe utility to determine the maximum token and to download the Tokenz.exe utility, visit the following Microsoft Web site:

http://www.microsoft.com/downloads/details.aspx?FamilyID=4a303fa5-cf20-43fb-9483-0f0b0dae265c&DisplayLang=en

For more information about how to change the MaxTokenSize registry value, click the following article number to view the article in the Microsoft Knowledge Base:

327825 New resolution for problems that occur when users belong to many groups

Moreover, when Exchange Server Active Sync is not completed, you can receive an HTTP 500 error code.

Exchange Server ActiveSync and Exchange Outlook Mobile Access (OMA) use the /Exchange virtual directory to access OWA templates and Distributed Authoring and Versioning (DAV) on the Exchange back-end server. This is where the mailbox of the user is located. Server ActiveSync and OMA cannot access this virtual directory if one of the following conditions is true: <ul> The /Exchange virtual directory on an Exchange back-end server is configured to require Secure Socket Layer (SSL).</li> Forms-based authentication is enabled.</li></ul>

This issue does not occur when you enable these settings on the /Exchange virtual directory on a front-end server

To resolve this issue, use the Metaedit tool. For more information about how to obtain and install the Metadata tool, click the following article number to view the article in the Microsoft Knowledge Base:

232068 How to download, install, and remove the IIS Metaedit 2.2 utility

To resolve this issue, follow these steps: <ol style="list-style-type: lower-alpha;"> Open the Metabase Editor (MetaEdit) tool. To do this, click Start, point to Programs, point to Administrative Tools, and then click Metaedit.</li> In Metaedit, expand theLM/W3SVC/1/Root/Exchange folder, and then click Exchange,</li> On the Metabase menu, click Export Text File, and then click Yes in the Metaedit dialog box.</li> In the file name box, type Exchange-OMA, and then click Save.</li> In the Metaedit dialog box, click Yes.</li> <li>In the Metaedit dialog box, click OK.</li> <li>Locate and then open the Exchange-OMA.txt file.</li> <li>Locate the line that resembles the following: [/LM/W3SVC/1/Root/Exchange]. This is line number 6.</li> <li>Type -OMA after Exchange so that the line resembles the following:

[/LM/W3SVC/1/Root/Exchange-OMA]

</li> <li>On the File menu, click Save.</li> <li>On the File menu, click Exit.</li> <li>In Metabase Editor, click the following folder:

LM/W3SVC/1/Root/Exchange

</li> <li>On the Metabase menu in Metabase Editor, click Import Text File.</li> <li>In the Metaedit dialog box, click Yes.</li> <li>In the Open dialog box, click the Exchange-OMA file, and then click Open.</li> <li>In the Metaedit dialog box, click No.</li> <li>In the Metaedit dialog box, click Yes.</li> <li>In the Metaedit dialog box, click OK.</li> <li>Expand the following folder:

LM/W3SVC/1/Root/Exchange

</li> <li>Verify that the following folders exist in the Exchange folder:

LM/W3SVC/1/Root/Exchange/Exchange-OMA

</li> <li>Open Internet Information Server (IIS) Manager, and then verify that the Exchange-OMA folder exists under Default Web site.</li></ol> </li> <li>HTTP_502

This error code corresponds to the E_HTTP_BAD_GATEWAY error. This is is described as the following error message:

Synchronization failed due to an error on the server.

This issue may occur if the Pocket PC device uses a proxy server to connect to the ActiveSync Server, and then the proxy server experiences an error.

To resolve this issue, connect to the ActiveSync Server by using a different proxy server.Or troubleshoot connection issues on the proxy server.</li></ul>

For additional information about error messages in Microsoft Mobile Information Server, obtain the Errors.chm file. To download this file, visit the following Microsoft Web site:

http://www.microsoft.com/downloads/details.aspx?familyid=3c573d9e-e868-4d3b-b004-beded85b9fbd&displaylang=en

To view the updated release notes for Mobile Information Server 2002, visit the following Microsoft Web site:

http://www.microsoft.com/exchange/evaluation/previous/miserver/techinfo.asp

For more information about other HTTP error codes, click the following article number to view the article in the Microsoft Knowledge Base:

318380 IIS status codes

Keywords: kbtshoot kbinfo KB330463

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.