The ActiveSync OPTIONS command returned an HTTP 401 Error
Topic Last Modified: 2013-02-05
Microsoft Exchange ActiveSync enables the synchronization of mailbox information with mobile devices. To do this, Exchange uses the Microsoft-Server-ActiveSync virtual directory in Internet Information Services (IIS).
When the Microsoft Best Practices Analyzer tests ActiveSync connectivity, the ActiveSync test returns the following error message:
An ActiveSync session is being attempted with the server. Errors were encountered while testing the Exchange ActiveSync session. Test Steps Attempting to send the OPTIONS command to the server. Testing of the OPTIONS command failed. For more information, see Additional Details. Additional Details An HTTP 401 Unauthorized response was received from the remote IIS server. This is usually the result of an incorrect username or password. If you are attempting to log onto an Office 365 service, ensure you are using your full User Principal Name (UPN).
This error typically occurs in an Exchange 2010 or Exchange 2007 environment where the target mailbox resides on an Exchange 2003 server and Basic Authentication is configured on the Microsoft-Server-ActiveSync virtual directory.
When Exchange 2010 or Exchange 2007 coexist with Exchange 2003, Integrated Windows authentication must be enabled on the Microsoft-Server-ActiveSync virtual directory that is hosted on the Exchange 2003 mailbox server. This allows the Exchange 2010 or Exchange 2007 Client Access server and the Exchange 2003 back-end server to communicate by using Kerberos authentication.
The most common cause for this error is an incorrect username or password. If you are using Office 365, make sure that you log in by using your full User Principal Name (UPN). For example, log in by using the following: email@example.com. If the login information is correct, we recommend that you use the following procedure to help resolve this issue.
You must use Exchange System Manager to adjust the authentication settings of the Exchange ActiveSync virtual directory. Do not use IIS Manager to change the authentication setting on the ActiveSync virtual directory. This is because the Exchange System Attendant overwrites the settings that are stored in Active Directory.
To modify permissions on the Microsoft-Server-ActiveSync virtual directory in Exchange 2003 Server Manager
Install the following hotfix on the Exchange 2003 server:
Start Exchange System Manager on the Exchange 2003 Mailbox server.
Expand Administrative Groups, expand Administrative_Group_Name, and then expand Servers.
Expand ServerName, expand Protocols, and then expand HTTP.
Expand Exchange Virtual Server, right-click Microsoft-Server-ActiveSync, and then click Properties.
Click the Access tab, and then click Authentication.
Click to select the Integrated Windows Authentication check box.
Click OK two times.
To verify that this data successfully replicated to the metabase on the Exchange server, follow these steps:
Open the Internet Information Services (IIS) Manager under Administrative Tools.
Expand the ServerName, expand Web Sites, and then expand Default Web Site.
Right-click Microsoft-Server-ActiveSync, and then click Properties.
Click the Directory Security tab, and then select the Edit button under Authentication and access control.
Verify that the Integrated Windows Authentication check box is selected.
If this check box is selected, you have successfully replicated the change that was made in the Exchange System Manager to the metabase on the Exchange server.
Click Cancel two times, and then exit Internet Information Services (IIS) Manager.
For more information, see step 7 under “Installing Exchange 2010” in the following TechNet topic: Upgrade from Exchange 2003 Client Access.