ActiveSync mobile connection issue (Exchange 2010)
Since a couple of days I'm trying to configure the ActiveSync on Exchange 2010 to work with mobile devices in the company. When use Remote Connectivity Analyzer usually can connect with ActiveSync but sometimes get the error 502 - Bad Gateway. The server is exposed to the internet thru the Apache reverse proxy (with OWA enabled and working correctly). When trying to connect any mobile device I have the answer "cannot connect to the server" without any particular message in log files on the Server. The message I have every 30 minutes in the server's Event Viewer is A runtime exception occurred in AuditLogSearchServicelet's worker while processing a request. Exception: Microsoft.Exchange.Data.Storage.UserHasNoMailboxException: The user does not have an Exchange mailbox. at Microsoft.Exchange.Data.Storage.ExchangePrincipal..ctor(ADUser user, ADObjectId mdb, DatabaseLocationInfo databaseLocationInfo, RemotingOptions remotingOptions, Boolean asArchive) at Microsoft.Exchange.Data.Storage.ExchangePrincipal.InternalFromADUser(ADUser user, RemotingOptions remotingOptions) at Microsoft.Exchange.Management.SystemConfigurationTasks.AuditLogSearchDataProviderBase.GetMailboxSession(ADUser mailbox, String action) at Microsoft.Exchange.Servicelets.AuditLogSearch.TenantWorker.GetSearchWorker(ADUser arbMbx) at Microsoft.Exchange.Servicelets.AuditLogSearch.TenantWorker.DoWork() I use the test account without administrative rights. I'm also getting the following info in the IIS log when ExRCA connection test is successful: 2012-05-09 12:29:30 192.168.2.50 POST /Microsoft-Server-ActiveSync/default.eas Cmd=Sync&User=username&DeviceId=1399583192&DeviceType=TestActiveSyncConnectivity 443 - 192.168.2.51 Microsoft-Server-ActiveSync/12.0+(TestExchangeConnectivity.com) 401 2 5 0 And with rejected connection there is a message: 2012-05-09 12:33:29 192.168.2.50 POST /Microsoft-Server-ActiveSync/default.eas Cmd=Sync&User=username&DeviceId=1399583192&DeviceType=TestActiveSyncConnectivity 443 - 192.168.2.51 Microsoft-Server-ActiveSync/12.0+(TestExchangeConnectivity.com) 401 2 5 46 I have no idea what's the reason. I think about the certificate errors (self signed certs), or maybe some wrong redirection on reverse proxy but after many tried changes I still cannot resolve the problem. I have tried it on Android based mobile phone and also on iPad (both of them have the ActiveSync connection tools built-in). Can anyone give me any idea?
May 9th, 2012 9:03am

you're getting a 401 2 - http://support.microsoft.com/kb/907273 I think this may be due to the proxy and the way it's handling authentication. Not sure how it is published on the proxy i.e via a rule? Check the authentication methods in IIS too, is basic selected?Sukh
Free Windows Admin Tool Kit Click here and download it now
May 9th, 2012 4:01pm

Hi, This issue might be caused by corrupted device partnerships. Please remove the device partnership for the first affected user via EMC--> User--> Right click--> Manage mobile phone option; or via Remove-ActiveSyncDevice Identity <DeviceID>.\ Hope it is helpful.Fiona Liao TechNet Community Support
May 10th, 2012 5:49am

Thanks a lot for the answer. Yes, it seems to be a problem with proxy. I've just redirect the Exchange server to connect Internet without proxy and it works. The basic authentication in the IIS is enabled and the proxy works as the ProxPassReverse rule in the Apache VirtualHost configuration section. So probably I've messed up in the Apache config...
Free Windows Admin Tool Kit Click here and download it now
May 10th, 2012 10:45am

I've just found your answer as a help for another problem - after deleting the account from mobile, I'm unable to create it again - removing partnership helps :)
May 25th, 2012 5:43am

Thanks for your update and confirmation. Have a nice day :)Fiona Liao TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
May 25th, 2012 6:06am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics