Link to home
Start Free TrialLog in
Avatar of Filip Heens
Filip HeensFlag for Belgium

asked on

Empty autodiscover.xml

Hi Can someone give me the contents of an autodiscover.xml file?

This is what is in my autodiscover.xml file.

<?xml version="1.0" encoding="utf-8"?>
<Autodiscover>
<!-- This is a placeholder file -->
</Autodiscover>

And it seem to me that that is not what should be there ;-)
Or is ther a way to recreate this?
Avatar of ATIG
ATIG
Flag of United States of America image

You are actully ok with this unless you need to make modifictions.

Are you having problems with autodiscover?

Check
get-clientaccessserver
get-autodiscovervirtualdirectory

verify your urls that are listed
Avatar of Filip Heens

ASKER

I think I'm having problems...
Everything seem ok, a "test email autoconfiguration" gives me some URL.
For the OAB I get https://owa.mycompanyname.com/oab/ad211f2f-7dee-439f-8ca9-1b73206c6a17
But in my outlook I get "Not downloading Offline address book files.  A server (URL) could not be located"
and one of the things I found on the internet was that it could be related to the autodiscover.xml file
ASKER CERTIFIED SOLUTION
Avatar of Sembee
Sembee
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
The test autodiscover says everything is ok, so I guess it is?
When I "update" the OAB everything seem to be ok (no errors in the eventlog...)
1. Is your client domain joined?
2. Are you using web distorbution for the OAB
3. how do you have your internal vs exteranl url sets on the OAB virtual
 -- from above it look like its set ok...

Can you create an OOF message?
Just want to see if everything is actually working....

You can turn up logging on the system attendant and look for the event it stating OAB generation was successful
1. nope client isn't domain joined... I'm using Outlook Anywhere...
2. Yep but I've noticed yesterday that I forgot to check to create the web based distrubution, when I checked that and did an update I got event ID 1008 stating that the OAB was updated
3 yep internal and external url are the same since nobody is using exchange internal. servers are housed outside the company and everybody (5 people ;-) ) uses Outlook anywhere...

Nope I can't create an OOF with Outlook 2007, OWA and previous Outlook versions no problem.

If you cannot do OOF then everything is not working

Did you setup the availability service?

DO a :
get-WebServicesVirtualDirectory

Set-WebServicesVirtualDirectory -Identity "EWS*" -ExternalUrl "Https://XXXXXXEWS/Exchange.asmx" -InternalUrl "Https://XXXXX/EWS/Exchange.asmx"

You can also do
Test-OutlookWebServices -Identity: User@domain.com

yep the service is setup...
can you put up the output.. not that I dont take your word but I have setup it up before and typed autodiscovery instead of discover.....

you can change the url a bit

Do you have a record in DNS that points to  autodiscover.X.X

Do a get-clientacessserver and look at the uri
get-webservices
get-autodisovervirtualdiretory
[PS] C:\Documents and Settings\filip.heens>Get-clientAccessserver

Name
----
HIT04

[PS] C:\Documents and Settings\filip.heens>Get-WebservicesVirtualdirectory


Name                          : EWS (Webmail Heens IT)
InternalAuthenticationMethods : {Ntlm}
ExternalAuthenticationMethods : {Ntlm}
BasicAuthentication           : False
DigestAuthentication          : False
WindowsAuthentication         : True
MetabasePath                  : IIS://hit04.mycompany.com/W3SVC/1/ROOT/EWS
Path                          : C:\Program Files\Microsoft\Exchange Server\ClientAccess\exchweb\EWS
Server                        : HIT04
InternalUrl                   : https://autodiscover.mycompany.com/EWS/exchange.asmx
ExternalUrl                   : https://autodiscover.mycompany.com/EWS/exchange.asmx
AdminDisplayName              :
ExchangeVersion               : 0.1 (8.0.535.0)
DistinguishedName             : CN=EWS (Webmail Heens IT),CN=HTTP,CN=Protocols,CN=HIT04,CN=Servers,CN=Exchange AdministrativeGroup (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=Heens IT Consultancy,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=mycompany,DC=com
Identity                      : HIT04\EWS (Webmail Heens IT)
Guid                          : 7812346f-ecb2-40bd-93c2-789172892361
ObjectCategory                : mycompany.com/Configuration/Schema/ms-Exch-Web-Services-Virtual-Directory
ObjectClass                   : {top, msExchVirtualDirectory, msExchWebServicesVirtualDirectory}
WhenChanged                   : 22/06/2007 23:28:14
WhenCreated                   : 22/06/2007 23:28:14
OriginatingServer             : hit01.mycompany.com
IsValid                       : True

[PS] C:\Documents and Settings\filip.heens>Get-AutodiscoverVirtualdirectory


Name                          : Autodiscover (Webmail Heens IT)
InternalAuthenticationMethods : {Basic, Ntlm}
ExternalAuthenticationMethods : {Basic, Ntlm}
BasicAuthentication           : True
DigestAuthentication          : False
WindowsAuthentication         : True
MetabasePath                  : IIS://hit04.mycompany.com/W3SVC/1/ROOT/Autodiscover
Path                          : C:\Program Files\Microsoft\Exchange Server\ClientAccess\Autodiscover
Server                        : HIT04
InternalUrl                   : https://autodiscover.mycompany.com/autodiscover/autodiscover.xml
ExternalUrl                   : https://autodiscover.mycompany.com/autodiscover/autodiscover.xml
AdminDisplayName              :
ExchangeVersion               : 0.1 (8.0.535.0)
DistinguishedName             : CN=Autodiscover (Webmail Heens IT),CN=HTTP,CN=Protocols,CN=HIT04,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=Heens IT Consultancy,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=mycompany,DC=com
Identity                      : HIT04\Autodiscover (Webmail Heens IT)
Guid                          : 16087b93-40fa-4272-a05d-65a77acfd9fd
ObjectCategory                : mycompany.com/Configuration/Schema/ms-Exch-Auto-Discover-Virtual-Directory
ObjectClass                   : {top, msExchVirtualDirectory, msExchAutoDiscoverVirtualDirectory}
WhenChanged                   : 18/06/2007 14:59:14
WhenCreated                   : 17/06/2007 11:37:52
OriginatingServer             : hit01.mycompany.com
IsValid                       : True
if you want to send me an email at my "spam" address <removed by sembee> and I reply you with my "normal" address so that I can give my company's address...
(Let me know once you've send it, I normally don't check that account ;)
that was not what I mean by posting my emailaddress...
I will continue to post the answers... but I would just give my company's address if it would be necessary to do better troubleshooting...
I can't post that address on the forum security wise ;-)
can you do the get-cliendaccessserver | fl please so I can see the data there... The first two look good that I see....

Do you have an external dns record for autodiscover.mycopany.com ?
I did a get-clientaccessserver | fl (think you meant that ;-) )

[PS] C:\Documents and Settings\filip.heens>get-clientaccessserver | fl

Name                           : HIT04
OutlookAnywhereEnabled         : True
AutoDiscoverServiceCN          : hit04
AutoDiscoverServiceClassName   : ms-Exchange-AutoDiscover-Service
AutoDiscoverServiceInternalUri : https://hit04.mycompany.com/Autodiscover/Autodiscover.xml
AutoDiscoverServiceGuid        : 77378f46-2c66-4aa9-a6a6-3e7a48b19596
AutoDiscoverSiteScope          : {Default-First-Site-Name}
IsValid                        : True
OriginatingServer              : hit01.mycompany.com
ExchangeVersion                : 0.1 (8.0.535.0)
DistinguishedName              : CN=HIT04,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=Heens IT Consultancy,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=mycompany,DC=com
Identity                       : HIT04
Guid                           : 3fd0b203-902c-41bc-ac66-b29a062e07d5
ObjectCategory                 : mycompany.com/Configuration/Schema/ms-Exch-Excha
nge-Server
ObjectClass                    : {top, server, msExchExchangeServer}
WhenChanged                    : 15/06/2007 0:10:07
WhenCreated                    : 12/03/2007 23:13:5

If you want to change the mycompany.com by the exact name, mail me at my telenet address, I WILL keep using these forms dough for all the rest...;-)
I know that maybe someone else could have these problems and might find a solution like this (and like I already did several times...)
AutoDiscoverServiceInternalUri : https://hit04.mycompany.com/Autodiscover/Autodiscover.xml

That should be set to the same url as or EWS etc......

The Autodiscover.mycompany.com is an  A Record in DNS that points to a CAS server ?

Also, what are the urls for your

What is the url for your OWA access........

The setup I use =
A record Autodiscover.XXXX.YYYY = IP of website on CAS ( which presents cert for autodisocver.xxx.yyy) then redirects everything to below
Mail.XXXXX.YYYY = OWA , OABvitrualdirectory,EWS,Outlook Anywhere, clientaccessserver Internaluri
how do I change the AutoDiscoverServiceInternalUrl?

Yep, autodiscover.mycompany.com is an A record that point to my CAS server = OWA server

OWA = https://owa.mycompany.com

I have one SSL a wildcard SSL that is on the IIS (autodiscover and OWA are on the same IIS server...)

(I don't have the money to buy 2 servers for 10 mailboxes ;-) )
Each is on a separate website?

Whiich site has the virtual directories for EWS, OAB, etc..... or do you have it on the same site in which case you get a cert error?

set-clientaccessserver -AutoDiscoverServiceInternalUri "https://XXXXX"
Nope everything is on the same Website...
And I don't get a cert error? I'm using a wildcard ssl *.mycompany.com ...

when I use https://owa.mycompany.com/owa or https://autodiscover.mycompany.com/owa or https://activesync.mycompany.com/owa or https://.... .mycompany.com everything seems to work, no certification errors

other question about AutoDiscoverServiceInternalUrl : https://hit04.mycompany.com/Autodiscover/Autodiscover.xml
That should be set to the same url as or EWS etc......

Do you mean
https://autodiscover.mycompany.com/Autodiscover/Autodiscover.xml or https://autodiscover.mycompany.com/EWS/exchange.asmx

and is it the same for the AutoDiscoverServiceExternalurl do I there also use the https://autodiscover.mycompany.com/Autodiscover/Autodiscover.xml or https://autodiscover.mycompany.com/EWS/exchange.asmx
https://autodiscover.mycompany.com/Autodiscover/Autodiscover.xml
yes internal/external

remove hit04 and change it to..... autodiscover.

so I take it all your urls autodiscover or owa etc... point to the same IP?

yep they all point to the same IP, is that a problem?
nope, just checking..... since you have a wildcard cert any user could hit any of the urls and get where they want to go...... :)

i.e
autodisocver.mycompany.com/owa
owa.mycompany.com/owa  
hits the same place :P

Are you still having problems with OOF etc.... ?


I you have the host headers ok, then it should be no problem...

yep still having the problems :(

Do I need to restart anything after "upgrading" the AutoDiscoverServiceInternalUri ?
you cannot use host headers with SSL :)
no not the SSL, but for the website itself you have to provide the hostheaders, that's what i meant ;-)
but you said you only have 1 web site?

How many sites do you have?
do you have 1 site for OWA?

1 site for autodisocver?
I have 1 (the same) site for and OWA and autodiscover
ahhhhh....
the OWA site has the virtuals for OAB and EWS?

If  so change EWS urls , OAB urls to  https://owa.mycompany.com/XXXX

and that should fix everything... :)

? I don't understand it?
hwat do I need to do (just to be sure)

PS I wont be able to read your answer for some hours... I will try your answer later tonight...
Ok,
Let me restate to verify I am seeing thing correct now
1. On your Cas server you have 2 website
-- default web
 --- Does the default web have a virtual directory called EWS?  or is the EWS virtual on the added site
-- added site

In the out put above you have all your urls set to autodiscover.XXXXX.XXX  they need to be set to the url/site that hosts the virtual directories.

Can you tell me what sites have what virtuals on your server?

PS I will be out of town for the next few days .... sorry
Nope on my CAS I have 1 website...
Webmail Heens IT
These are the Virtual directories on that website.
- Autodiscover
- EWS
- Exadmin
- Exchange
- Microsoft-Server-ActiveSync
- OAB
- owa
- Public
- RPC
- RpcWithCert
- UnifiedMessaging

all the URL's are set to this website.

I do have one other site but that is just an autodiscoverredirect site for other domains... not using it until this works...

Hope to hear from you when you are back in town ;-)
SOLUTION
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
All urls are the https://owa.yourdomain.com /ews

etc.....?

in your case autodiscover.yourdomaon/owa etc.... should work as well...

1 more question
Is you email domain that same as your Url

i.e user@xxxx.com  and web url owa.XXXX,com?
Yep, I get the logon and I can logon
After that I get the 600 error (but I thought I read somewhere that that is ok?)
<?xml version="1.0" encoding="utf-8" ?>
- <Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
- <Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
- <Error Time="11:54:23.6030236" Id="3558172185">
  <ErrorCode>600</ErrorCode>
  <Message>Invalid Request</Message>
  <DebugData />
  </Error>
  </Response>
  </Autodiscover>


Yep emaildomain is the same as the URL

PS thanks for being so dedicated ;-)
Avatar of mdbanat
mdbanat

I am having the same problem. I cannot manage to pass the autodiscover problems. I set the urls, virtualdirectories all as required but still it does not work. Still get the same <ErrorCode>600 as above.
the 600 error code should be ok, what is your exact problem?
I'm going to log a call with MS PSS and will try to fix it.
If you have the same problems/situation maybe you can get helped to...
I'll post the solution if I have one...
Yes, please post the solution. I am getting problems with autodiscover which prevents OAB distribution.  I am nit trying to have autodiscover externally, for me internally is fine

I am getting the certificate error for autodiscovery, but I guess this happens because it tries to autodisover enternally and when it fails to tries to connect externally. So I am thinking if I can solve it enternally I will not get the certificate error. My main purpose is to have OAB works.

I try to test with Outlook 2007 test email autoconfiguration and I get this:
-----------------------------------------------------------------------
Attempting URL hhtps://host.xxx.com/Autodiscover/Autodiscover.xml found through SCP
Autodisicover to https://host.xxx.com/Autodiscover/Autodiscover.xml stating
Autodiscover to https://host.xxx.com/Autodiscover/Autodiscover.xml  FAILED (0x800C8203)
Autodiscover to https://autodiscover.YYY.com/Autodiscover/Autodiscover.xml stating
Autodiscover request completed with http status code 404
Autodiscover to https://autodiscover.YYY.com/Autodiscover/Autodiscover.xml FAILED (0x8004005)
Local Autodiscover for YYY.com starting
Local Autodiscover for YYY.com FAILED (0x8004010F)
Redirect check to http://autodiscover.YYY.com/autodiscover/autodiscover.xml starting
Redirect check to http://autodiscover.YYY.com/autodiscover/autodiscover.xml FAILED (0x80072EFD)
----------------------------------------------------------------------

Now my internal domain is xxx.com while external address is YYY.com as you notice from above.

Of course in Outlook 2007 I get the sync error:
---------------------------------
13:52:29 Synchronizer Version 12.0.4518
13:52:29 Synchronizing Mailbox "FirsttName LastName'
13:52:29 Done
13:52:57 Microsoft Exchange offline address book
13:52:57              Not downloading Offline address book files.  A server (URL) could not be located.
13:52:57       0X8004010F
------------------------
I palyed with the URLS, created and deleted virualdirectories like million times with no success. Any hint or help is appreciated.


If you contact PSS let me know who you are working with, I might know them
Nope you don't know him ;-)
It's the Dutch guy again ;-)

I do however found something new interesting over the weekend...

If I create a mailbox on the "old" server.
And then create an outlook profile with RPC over HTTPS (exchange 2003), I can work with the mailbox perfectly.
If I then move the mailbox to a new server en start outlook, the profile and the Outlook Anywhere (Exchange 2007) settings are automaticaly adjusted.
But we can't connect anymore...
Strangly enough, with the change one extra thing is checked... The "only connect to proxy servers that have this principle name in their certificate"... if I uncheck this, everything seems to work perfectly... (I think it should be unchecked as we are using basic authentication and not NTLM...)

If I want to create a new Outlook 2007 profile via the autodiscover, I get the same problem. at one time I need to login, but I can't get authenticated (whatever user I use, even an administrator account can't check the name in the AD) I SUSPECT that in the automatically created profile, that option ("only connect to proxy servers ...") is also checked, I can't check it because I can't finish the creating of the account since the smtp address can't get checked with the AD..

Maybe if we can get that problem fixed, everything will be solved... Maybe that's the problem I'm having with the AUTODISCOVER service?
Anyone knows this:
when I use Test-OutlookWebServices -id:user1@YYY.com -TargetAddress: user2@YYY.com

I get errors that autodiscover failed. ID: 1005, 1013 and 1006. Anyone knows what is this and how to troubleshoot it?
I manged to solve my problem regarding autodiscover. Believe it or not, the problem was the server name in outlookprovider was not in Capital letters. Once I chnaged outlook provider EXCH to have server name in Capital Letters it started to work. I only receive message for username and password when I open outlook. I don't know if they are related or not, but at least it started to work! Thanks to everyone here.

 Heensit, I hope you find the solution for your problem. Good luck.
OK solution partialy found...
OK OOF & OAB problems are solved the autocreate profile for new profiles on Outlook 2007 is not yet working...

With the help from SM PSS we found it. We used this link
http://support.microsoft.com/default.aspx?scid=kb;EN-US;896861

What we also did earlier (but didn't help then so maybe it's part of the solutions) check that your Default Web Site site is called like that.
I had changed it, and PSS asked me to change it back. (but as mentioned earlier, it didn't help until I used the link above...
http://exchange-genie.blogspot.com/2007/07/autodiscover-ad-attribute.html

run through this.. I am still working on it but it has some good info.
OK Something for tomorrow.
Now it's WEEKEND :-)
Hi All,
 is there any good by filling down the missing second column ? because my autodiscover.xml file is also empty.


Cmdlets:
Get-OutlookProvider

Result:
Name                         Server                       CertPrincipalName            TTL                        
 ----                                 ------                                -----------------                  ---                        
EXCH                                                                                                              1                          
EXPR                                                                                                              1                          
WEB                                                                                                                1
     
 
any idea please ?
 
thanks.
Hi,

Do you have any samle autodiscover.xml file? Because I would like use this feature.