Link to home
Start Free TrialLog in
Avatar of rowebiz
rowebiz

asked on

Exchange ActiveSync returned an HTTP 500 response.

I'm having trouble getting an iPhone to sync up with Exchange 2003 SP2.

using https://www.testexchangeconnectivity.com 

returns the following error:
 Testing Exchange ActiveSync  
  Exchange ActiveSync test Failed
   Test Steps
   Attempting to resolve the host name mail.xxxxx.com in DNS.
  Host successfully resolved
   Additional Details
  IP(s) returned: x.x.x.x  
 
 Testing TCP Port 443 on host mail.xxxxx.com to ensure it is listening and open.
  The port was opened successfully.
 Testing SSL Certificate for validity.
  The certificate passed all validation requirements.
   Test Steps
   Validating certificate name
  Successfully validated the certificate name
   Additional Details
  Found hostname mail.xxxxx.com in Certificate Subject Common name  
 
 Testing certificate date to ensure validity
  Date Validation passed. The certificate is not expired.
   Additional Details
  Certificate is valid: NotBefore = x/x/2009 10:03:27 PM, NotAfter = x/x/2010 8:37:47 PM"  
 
 
 
 Testing Http Authentication Methods for URL https://mail.xxxx.com/Microsoft-Server-Activesync/ 
  Http Authentication Methods are correct
   Additional Details
  Found all expected authentication methods and no disallowed methods. Methods Found: Basic  
 
 Attempting an ActiveSync session with server
  Errors were encountered while testing the ActiveSync session
   Test Steps
   Attempting to send OPTIONS command to server
  OPTIONS response was successfully received and is valid
   Additional Details
  Headers received: Pragma: no-cache
Public: OPTIONS, POST
Allow: OPTIONS, POST
MS-Server-ActiveSync: 6.5.7638.1
MS-ASProtocolVersions: 1.0,2.0,2.1,2.5
MS-ASProtocolCommands: Sync,SendMail,SmartForward,SmartReply,GetAttachment,GetHierarchy,CreateCollection,DeleteCollection,MoveCollection,FolderSync,FolderCreate,FolderDelete,FolderUpdate,MoveItems,GetItemEstimate,MeetingResponse,ResolveRecipients,ValidateCert,Provision,Search,Notify,Ping
Content-Length: 0
Date: Fri, 04 Dec 2009 00:00:09 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET

 
 
 Attempting FolderSync command on ActiveSync session
  FolderSync command test failed
   Tell me more about this issue and how to resolve it
   Additional Details
  Exchange ActiveSync returned an HTTP 500 response.  
 
 
I have gone through alanhardistys excellent article https://www.experts-exchange.com/Software/Server_Software/Email_Servers/Exchange/A_1798-Exchange-2003-Activesync-Connection-Problems-FAQ.html

This part in particular has me wondering...
" Remove SSL settings from the Exchange IIS virtual directory
" Run iisreset
" Test activesync without SSL selected - hopefully this should work or give the OK result

Even without SSL selected on the Exchange Virtual Directory - the connectivity test fails

" If okay - right-click on the Exchange Virtual Directory and select all Tasks> Save Configuration to a file. Name the file Exchange and save to the desktop

Any help would be greatly appreciated.
Avatar of Ove
Ove
Flag of Germany image

you do only have to set the server-address inside the iphone  https://mail.xxxx.com...not the url  https://mail.xxxx.com/Microsoft-Server-Activesync/
Avatar of Alan Hardisty
Please have a read of the section starting "After following KB883380 and if Activesync still does not work and it keeps coming up with HTTP 500 errors, please do the following:" in my article on Activesync and Exchange 2003:
https://www.experts-exchange.com/Software/Server_Software/Email_Servers/Exchange/A_1798-Exchange-2003-Activesync-Connection-Problems-FAQ.html 
Avatar of rowebiz
rowebiz

ASKER

When running testexchangeconnectivity.com

ActiveSync Server = mail.domain.com

I'm not appending Microsoft-Server-Activesync/ to it.
Avatar of rowebiz

ASKER

Alan

Appreciate the reply...

Disable Forms Based Authentication - Exchange HTTP Protocol (if enabled) CHECK
Remove SSL settings from the Exchange IIS virtual directory CHECK
Run iisreset CHECK
Test activesync without SSL selected - hopefully this should work or give the OK result : FAILS
If okay - right-click on the Exchange Virtual Directory.....

I went on to create the exchange-oma virtual directory anyway however this also failed.
No probs - missed that you had discovered my FAQ in the question (doh!).
Have you tried Method 2 of KB883380 - deleting the metabase - which should re-create everything for you?
If the test fails with SSL off on Exchange - there is a problem on one of the Virtual Directories and KB883380 should resolve that (with any luck).  Sadly Activesync when it does not work, can be a Pain In The Butt!
Avatar of rowebiz

ASKER

I have applied Method2 of KB883380 http://support.microsoft.com/kb/883380 two times for good measure. The test of course, still fails.

I am starting to wonder about the Virtual directories not mentioned in Method 2 of KB883380

I deleted the following:

Exadmin
Exchange
ExchWeb
Microsoft-Server-ActiveSync
OMA
Public

However I still have a directory called OWAAdmin and aspnet_client I am led to believe that neither of these have any bearing on ActiveSync connections though.

OWAADMIN is used for password resets in OWA and other tasks.  This is not related to Activesync. http://www.microsoft.com/downloads/details.aspx?familyid=4BBE7065-A04E-43CA-8220-859212411E10&displaylang=en
ASPNET_CLIENT is also unrelated and I have it on my Exchange 2003 server so don't worry.
I have another EE question with the dreaded HTTP 500 error and my FAQ has not been able to solve those I am afraid and a call to Microsoft is currently under way I believe.
So after deleting the virtual directories and waiting fo them to reappear, did you then follow the rest of my FAQ and did it fail on the first test?
Have you downloaded the Windows Test App also linked in my FAQ?
What do you get when you browse Microsoft server active sync virtual directory from IIS. Ideally is should give you 501/505 not implemented.

Tried to browse your  https://mail.xxxx.com/Microsoft-Server-Activesync and you should get the same 501/505 not implemented externally as well.

check this two and let me know.
Avatar of rowebiz

ASKER

Alan / Eddie

I've had to step away from this for an hour. I will attempt both your ideas in the next little while. I appreciate the advice.
Avatar of rowebiz

ASKER

So after deleting the virtual directories and waiting fo them to reappear, did you then follow the rest of my FAQ and did it fail on the first test?

After deleting virtual directories and waiting for them to reappear I followed your FAQ

" Disable Forms Based Authentication - Exchange HTTP Protocol (if enabled)  
" Remove SSL settings from the Exchange IIS virtual directory
" Run iisreset
" Test activesync without SSL selected - hopefully this should work or give the OK result

This is where it continues to fail. With SSL disabled on the Exchange VD I still get the same error (HTTP 500) From my understanding this is precisely what recreating the virtual directories in KB883380 is supposed to remedy. Argh.


Have you downloaded the Windows Test App also linked in my FAQ?

Yes, very useful tool thank you.

It fails with the  following error:

ActiveSync is NOT available. (activesync detected, but not correctly configured. [HTTP 500: Forms-based auth enabled?])  
May be kind of a duh thing, but is you mailbox enabled for active sync in Exchange Management Console? (Recipient Configuration>Mailbox>MailboxName>Properties>Mailbox Features Tab>Exchange Active Sync)
Avatar of rowebiz

ASKER

Eddie,

https://mail.xxxx.com/Microsoft-Server-Activesync directs me to an OWA login.
Browsing this virtual directory does not return anything (white screen)

IlliniTech09,

I am really thinking this is a duh thing, I fully expect a checkbox somewhere to be the fix for this whole problem. I'm using Exchange 2003

Global Settings > Mobile Services Properties > Enable OMA is checked.

Thanks for the suggestion.

Sadly I cannot offer any more suggestions at this point - I will contact the other EE user with the same problem and see if we can save you the call to Microsoft to fix this.  They hopefully have and may be able to advise what they did to fix the problem.
Alan
Avatar of rowebiz

ASKER

Alan,

I was going to ask if you could link me to the other EE user experiencing the same issue. I appreciate all your help.



It should not give you the OWA page when you browse Microsoft-server-activesync virtual directory. Check whether you are using any redirection script on your Default website. If yes removed it and try.

Since you have already followed KB 883380.

Try this. Go to Exchange system manager and expand the E2K3 server and under protocols you will have Exchange virtual server.

Under Exchange virtual server you will find Microsoft-server-activesync there. Delete it from there and delete it from IIS. Recreate from Exchange system manager with the Exact same name and it is case sensitive.  After that follow KB 883380 once again.


Avatar of rowebiz

ASKER

Thanks for suggestions all, No solution was found for this problem. Luckily the company in question is going with a hosted Exchange environment in the near future which already moblie users accessing mail through ActiveSync.
ASKER CERTIFIED SOLUTION
Avatar of Alan Hardisty
Alan Hardisty
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rowebiz

ASKER

No Resolution found, not sure how to just close the ticket.
I just resolved this issue.

Apply inherited permissions on the user account in ADUC under the Security/Advanced.
However it was Exchange 2010, but give it a shot.