Exchange 2007/2010 Web services and Autodiscover Ultimate Troubleshooting Guide

AID: 3002
  • Status: Published

9350 points

  • Bybusbar
  • TypeTips/Tricks
  • Posted on2010-04-30 at 06:30:02
Hi, during my online activities I can see that Exchange 2007/2010 web services are causing a lot of issues to people, and lots are suffering from it.
I decided to put this ultimate guide to spare the hustle and allow smoother and nicer web services experience.
Well, let us first list the directories that are used in the Exchange web service:
  • EWS is used for OOF, Scheduling assistance and free+busy Lookup.
    OAB provides offline address book download services for client.
    Autodiscover is used to provide users with autodiscover service.
    EAS provides ActiveSync services to Windows Mobile based devices.
    OWA provides outlook web access for users.
    ECP provides Exchange control panel feature for Exchange 2010 users only.

Issues that might be resolved using the troubleshooting steps here:
  • You cannot set the OOF using outlook client, you receive the server not available error.
    You cannot view free/busy information for other users.
    You cannot use scheduling assistance, also you might receive not free/busy information data retrieved.
    You cannot download Offline Address book errors.
    You cannot use autodiscover externally.
    Certificate mismatch error in autodiscover, users prompted to trust certificate in outlook 2007/2010.

I will update this post to include all of the errors that I face and solve in my work or on EE to help experts all over EE to quickly solve their issues.
First let us start by the configuration required post Exchange 2007/2010 installation for the above to work correctly:
Configure External and Internal URLs for OWS, ref: http://technet.microsoft.com/en-us/library/bb691323(EXCHG.80).aspx
  • You have to configure the internal URL to be the server name in case you have multiple servers in NLB.
    External URL will be the URL used by users to access webmail e.g. https://mail.domain.com/owa
    Mail.domain.com in multiple CAS servers will be the NLB FQDN.
    Configure External and Internal URLs for OAB, ref: http://technet.microsoft.com/en-us/library/bb123710.aspx
    This will point if multiple CAS servers are used then this will point to NLB FQDN.
    If single server used this will point to the internal server FQDN in the internal URL, and the mail.domain.com which is used by webmail users.

Configure the autodiscover internal URL:
  • You will use the powershell cmdlet : Set-ClientAccessServer –Identity <CAS Server Name> -AutoDiscoverServiceInternalUri: <Internal URL>, this FQDN must match the URL included in the certificate.
    If you cannot use autodiscover.domain.com internally (you have a domain name of domain.local and you must use it), you will get a certificate miss match error, you will have to include the internal name in the certificate if you purchase an external certificate.
    If you have multiple CAS in NLB this will be the NLB FQDN.
    You cannot set autodiscover external URL since outlook will try to access https://autodiscover.domain.com/autodiscover/autodiscover.xml, this behavior is by design and cannot be changed.
    Autodiscover.domain.com must be included in the certificate that you assign to IIS if you purchasing a certificate externally from 3rd party provider.

Configure EAS internal and External URLs, ref: http://technet.microsoft.com/en-us/library/bb629533(EXCHG.80).aspx
  • This URL will point to the NLB FQDN internally
    This IRL will point to NLB FQDN Externally.

Configure the EWS (which provides availability, OOF) internal and external URLs

after all of the above settings you have to take into considerations the following note:
  • All of the above uses https connection, so SSL certificate must be configured and assigned to IIS on the CAS servers.
    Since all of the above uses https, if you have a proxy traffic might be affected.
    Make sure that clients can access the URL internally and externally, you can do that by going to the above URL using IE or Firefox and validate that you can access them.

For some people after doing the above configuration you still receive some errors so make sure of the following:
  • IIS is started.
    OWA application pool, OAB application pool and EWS application pool are running and started with no errors
    If you receive authentication error, error 500 service not available, error 400 login time out, or unspecified error you will need to rebuild your virtual directories. You can do that as following:

  • For OWA:
    Get-owavirtualdirectory | remove-owavirtualdirectory
    New-owavirtualdirectory.
    You can repeat this step for EWS (webservicesdirectory), OAB (OABvirtualdirectory) and autodiscover(autodiscovervirtualdirectory)
You will have to note that you will need to re-configure any customizations you made to OWA after removing and deleting it, also you will have to redo any internal and external URL configuration you have did in the past

Hope that I helped you in this post, the post will be updated to include all of the issues we solve to give you the smoothest Exchange experience.
Mahmoud
Asked On
2010-04-30 at 06:30:02ID3002
Tags
Topic

Exchange Email Server

Views
28346

Comments

Author Comment

by: busbar on 2010-05-02 at 21:57:00ID: 14029

Just a quick correction:
the autodiscover inernal FQDN must be set using the following:
Set-ClientAccessServer -Identity CASServer -AutoDiscoverServiceInternalUri https://mail.domain.com/Autodiscover/Autodiscover.xml
so the URI must be the full address  https://mail.domain.com/Autodiscover/Autodiscover.xml

Author Comment

by: busbar on 2010-05-04 at 05:23:14ID: 14060

I found that you might get the following error also:
"Your Out of Office settings cannot be displayed, because the server is currently unavailable. Try again Later."
 please make sure that you have Anonymous authentication and windows authentication enabled on the EWS virtual directory

Author Comment

by: busbar on 2010-05-04 at 21:51:20ID: 14075

you might get
"Your Out of Office settings cannot be displayed, because the server is currently unavailable. Try again Later."
or you cannot set the OOF and get unspecified error
the solution:
mail sure The service Mailbox Assistant is running on the mailbox servers.  for some virtual servers or mailbox servers with low amount of memory set the service to delayed restart and restart the servers

Expert Comment

by: hari1234 on 2012-02-02 at 22:10:35ID: 41689

Thanks for the best information shared with us , i think it will really helps and guides many, i m really looking forward to this post.

web design company

Expert Comment

by: beersince1978 on 2012-05-21 at 10:12:17ID: 54614

You are my new "bestest" friend.

Author Comment

by: busbar on 2012-05-21 at 12:09:53ID: 54627

heheeeeeeee thanks

Add your Comment

Please Sign up or Log in to comment on this article.

Join Experts Exchange Today

Gain Access to all our Tech Resources

Get personalized answers

Ask unlimited questions

Access Proven Solutions

Search 3.2 million solutions

Read In-Depth How-To Guides

1000+ articles, demos, & tips

Watch Step by Step Tutorials

Learn direct from top tech pros

And Much More!

Your complete tech resource

See Plans and Pricing

30-day free trial. Register in 60 seconds.

Loading Advertisement...

Top Exchange Experts

  1. demazter

    724,144

    Sage

    1,580 points yesterday

    Profile
    Rank: Genius
  2. alanhardisty

    714,931

    Sage

    4,220 points yesterday

    Profile
    Rank: Genius
  3. jjmck

    275,745

    Guru

    1,030 points yesterday

    Profile
    Rank: Genius
  4. Rajkumar-MCITP

    268,093

    Guru

    0 points yesterday

    Profile
    Rank: Guru
  5. apache09

    245,757

    Guru

    1,500 points yesterday

    Profile
    Rank: Genius
  6. akicute555

    178,820

    Guru

    0 points yesterday

    Profile
    Rank: Wizard
  7. amitkulshrestha

    171,436

    Guru

    0 points yesterday

    Profile
    Rank: Genius
  8. acbrown2010

    159,135

    Guru

    1,000 points yesterday

    Profile
    Rank: Genius
  9. Akhater

    153,366

    Guru

    0 points yesterday

    Profile
    Rank: Genius
  10. Neilsr

    137,804

    Master

    0 points yesterday

    Profile
    Rank: Genius
  11. jordannet

    127,611

    Master

    10 points yesterday

    Profile
    Rank: Wizard
  12. GreatVargas

    101,542

    Master

    2,800 points yesterday

    Profile
    Rank: Wizard
  13. HendrikWiese

    95,084

    Master

    2,050 points yesterday

    Profile
    Rank: Sage
  14. limjianan

    94,700

    Master

    0 points yesterday

    Profile
    Rank: Genius
  15. endital1097

    93,710

    Master

    10 points yesterday

    Profile
    Rank: Genius
  16. Anuroopsundd

    92,000

    Master

    0 points yesterday

    Profile
    Rank: Sage
  17. davorin

    91,351

    Master

    0 points yesterday

    Profile
    Rank: Sage
  18. Radweld

    88,729

    Master

    0 points yesterday

    Profile
    Rank: Guru
  19. chakko

    88,498

    Master

    0 points yesterday

    Profile
    Rank: Genius
  20. R--R

    86,699

    Master

    0 points yesterday

    Profile
    Rank: Wizard
  21. e_aravind

    85,998

    Master

    0 points yesterday

    Profile
    Rank: Genius
  22. Exchange_Geek

    85,704

    Master

    0 points yesterday

    Profile
    Rank: Sage
  23. lucid8

    81,809

    Master

    0 points yesterday

    Profile
    Rank: Sage
  24. KalluSureshKumar

    76,534

    Master

    0 points yesterday

    Profile
    Rank: Master
  25. tigermatt

    73,020

    Master

    0 points yesterday

    Profile
    Rank: Genius

Hall Of Fame