Question : Problem Accessing Autodiscover.xml

I have recently switched one of our clients from SBS 2003 to SBS 2008.

I did not do a swing migration.  I created a brand new server name and domain name, recreated the users, computer accounts and imported all the data.  All workstations are using Outlook 2007.  There are two PC's that connect to Outlook using RPC over HTTP.  Those PC's, and I believe the internal ones as well, are getting the following errors in Outlook:

7:33:44 Microsoft Exchange offline address book
7:33:44                   Not downloading Offline address book files.  A server (URL) could not be located.
7:33:44 0X8004010F

A couple PC's are having problems turning on Out of Office, and all PC's do not have an offline address book.

I do have a trusted SSL certificate from a 3rd party installed.  It is for the external FQDN.

Here is the output I get from EAS: (obviously I've changed the domain name for privacy reasons)

[PS] C:\Windows\system32>Test-OutlookWebServices -identity adminuser | fl


Id      : 1003
Type    : Information
Message : About to test AutoDiscover with the e-mail address [email protected]
          m.

Id      : 1013
Type    : Error
Message : When contacting https://remote.contoso.com/Autodiscover/Autodiscover.x
          ml received the error The remote server returned an error: (401) Unau
          thorized.

Id      : 1006
Type    : Error
Message : The Autodiscover service could not be contacted.

I tried to access the autodiscover.xml  from the outside and was prompted for user authentication.  Is that normal?  What am I missing?

I actually have two servers with this problem, so any help would be appreciated.


Answer : Problem Accessing Autodiscover.xml

Fixing Autodiscovery in SBS 2008 with Outlook 2007
 
Outlook 2007 SP1 Configured as RCP over HTTP client.  Connection to server is good.

Outlook performs normally, except for problem described below.
Server is a SBS 2008, with Exchange 2007 SP1.  It has a FQDN, and has a single domain SSL certificate installed.
 
Problem:
User getting the following error in the sync issues folder:
Microsoft Exchange offline address book
Not downloading Offline address book files.  A server (URL) could not be located.
0X8004010F
 
Symptom:
In offline mode in Outlook, OAB was not present.
This was observed by composing an email, and clicking “to”.  The global address list is blank.
 
Testing from Exchange Server:
Tested using the following command while running Exchange Management Shell:
Test-OutlookWebServices -identity putusernamehere | fl
Id      : 1003
Type    : Information
Message : About to test AutoDiscover with the e-mail address putuseraddresshere@contoso.com.
 
Id      : 1013
Type    : Error
Message : When contacting https://remote.contoso.com/Autodiscover/Autodiscover.xml received the error The remote server returned an error: (401) Unauthorized.
 
Id      : 1006
Type    : Error
Message : The Autodiscover service could not be contacted.
 
Install SBS 2008 BPA and resolve issues:
I installed the SBS 2008 BPA to see if it would give me any clue, and fixed some problems that had nothing to do with auto discovery.  I ignored the issues concerning CNAME and site.  Those who have run BPA will know what I’m talking about.
 
Re-testing Exchange Server:
The following is new output of the same command after fixing problems suggested by BPA:
 
Id      : 1003
Type    : Information
Message : About to test AutoDiscover with the e-mail address [email protected]m.
 
Id      : 1006
Type    : Information
Message : The Autodiscover service was contacted at https://remote.contoso.com/Autodiscover/Autodiscover.xml.
 
Id      : 1016
Type    : Success
Message : [EXCH]-Successfully contacted the AS service at https://remote.contoso
          .com/EWS/Exchange.asmx. The elapsed time was 821 milliseconds.
 
Id      : 1015
Type    : Success
Message : [EXCH]-Successfully contacted the OAB service athttps://remote.contoso.com/EWS/Exchange.asmx. The elapsed time was 0 milliseconds.
 
Id      : 1014
Type    : Success
Message : [EXCH]-Successfully contacted the UM service at https://remote.contoso.com/UnifiedMessaging/Service.asmx. The elapsed time was 858 milliseconds.
 
Id      : 1016
Type    : Success
Message : [EXPR]-Successfully contacted the AS service at https://remote.contoso
          .com/EWS/Exchange.asmx. The elapsed time was 30 milliseconds.
 
Id      : 1015
Type    : Success
Message : [EXPR]-Successfully contacted the OAB service athttps://remote.contoso.com/EWS/Exchange.asmx. The elapsed time was 0 milliseconds.
 
Id      : 1014
Type    : Success
Message : [EXPR]-Successfully contacted the UM service at https://remote.contoso.com/UnifiedMessaging/Service.asmx. The elapsed time was 6 milliseconds.
 
Id      : 1013
Type    : Error
Message : When contacting https://remote.contoso.com/Rpc received the error The server committed a protocol violation. Section=ResponseStatusLine
 
Id      : 1017
Type    : Error
Message : [EXPR]-Error when contacting the RPC/HTTP service at https://remote.contoso.com/Rpc. The elapsed time was 14 milliseconds.
 
Id      : 1006
Type    : Success
Message : The Autodiscover service was tested successfully.
 
Id      : 1021
Type    : Information
Message : The following web services generated errors.
              Contacting server in EXPR
          Please use the prior output to diagnose and correct the errors.
 
Obviously the original error received while testing Exchange was resolved somehow.
I was not able to resolve the protocol violation error.  Moving on.
 
Testing from External Outlook client:
On the PC that had Outlook 2007 configured for use outside the office:
Press CTRL and right click the Outlook icon in the systray.  
Select Test Email Autoconfiguration
Populate user email address and password.
Select Use Autodiscover and click test.
 
At that point Autodiscover fails.  I don't have the output.
 
Create an SRV record:
Created an SRV record attached to the main domain contoso.com
This article helped me:  http://support.microsoft.com/kb/940881
Parameters
service: _autodiscover
protocol: _tcp
port: 443
host: remote.contoso.com
 
Used the following to verify the SRV record was in place:
From the command prompt:
nslookup
> set type=srv
> _autodiscover._tcp.contoso.com
Non-authoritative answer:
_autodiscover._tcp.contoso.com   SRV service location:
          priority       = 5
          weight         = 0
          port           = 443
          svr hostname   = remote.contoso.com
 
Reran Autodiscovery Test from Outlook:
First from a command prompt I performed: ipconfig /flushdns
This time it prompted me for user authentication, it had not done this before.  After authenticating, test was successful.
It asked me if I wanted to reconfigure using this website, I said yes, and checked the box to not prompt again.
From here, SRV Record lookup for contoso.com succeeded.  All other autodiscovery failed.
 
Resolution:
From this point,  errors regarding downloading the OAB have ceased.  Tested OAB, and it was present.
 Note: I also updated the Office installation to SP2.
 Interestingly I am still getting the error:
        Id      : 1013
        Type    : Error
        Message : When contacting https://remote.contoso.com/Rpc received the error The
                  server committed a protocol violation. Section=ResponseStatusLine
 
But everything seems to work normally.
Random Solutions  
 
programming4us programming4us