The Autodiscover service could not be located. Exchange 2007 SP3
Hi, I am facing this exception while consuming exchange web services. I am calling method 'AutodiscoverUrl' in my code. On running Test-OutlookWebServices i get the following output: Id : 1003 Type : Information Message : About to test AutoDiscover with the e-mail address Administrator@domain.com. Id : 1007 Type : Information Message : Testing server ExchServer2007.domain.com with the published name https://ExchServer2007.domain/EWS/Exchange.asmx & . Id : 1019 Type : Information Message : Found a valid AutoDiscover service connection point. The AutoDiscover URL on this object is https://ExchServer2007.domain.com/Autodiscover/Autodiscover.xml. Id : 1006 Type : Information Message : The Autodiscover service was contacted at https://ExchServer2007.domain.com/Autodiscover/Autodiscover.xml. Id : 1013 Type : Error Message : When contacting https://ExchServer2007.domain/EWS/Exchange.asmx received the error The remote name could not be resolved: 'ExchServer2007.domain' Id : 1016 Type : Error Message : [EXCH]-Error when contacting the AS service at https://ExchServer2007.domain/EWS/Exchange.asmx. The elapsed time was 250 milliseconds. Id : 1015 Type : Success Message : [EXCH]-Successfully contacted the OAB service at https://ExchServer2007.domain/EWS/Exchange.asmx. The elapsed time was 0 milliseconds. Id : 1014 Type : Success Message : [EXCH]-Successfully contacted the UM service at https://ExchServer2007.domain.com/UnifiedMessaging/Service.asmx. The elapsed time was 578 millis econds. Id : 1016 Type : Information Message : [EXPR]-The AS is not configured for this user. Id : 1015 Type : Information Message : [EXPR]-The OAB is not configured for this user. Id : 1014 Type : Information Message : [EXPR]-The UM is not configured for this user. Id : 1017 Type : Success Message : [EXPR]-Successfully contacted the RPC/HTTP service at https://ExchServer2007/Rpc. The elapsed time was 156 milliseconds. Id : 1006 Type : Success Message : The Autodiscover service was tested successfully. Id : 1021 Type : Information Message : The following web services generated errors. As in EXCH Please use the prior output to diagnose and correct the errors. However when i do Test-Email Autoconfiguration using outlook it shows all as succeeded. We have set internal URL only and using Basic as well as windows integrated authentication on virtual directories AutoDiscover and EWS. Can some one please guide me, what could be the issue?
August 7th, 2012 11:50am

Hi, Do not use test-OUtlookWebService to check the autodiscover service. The best ways to test the autodiscover is: Running the Test Email AutoConfiguration in Outlook.Manually access the autodiscover url via IE and see if it returns code 600 which means the service is fine. Thanks, Simon
Free Windows Admin Tool Kit Click here and download it now
August 9th, 2012 1:54am

Hey thanks Simon, the options you have suggested are working fine at my end. But when in the code i am trying to make a call to web service it gives me exception as : 'The Autodiscover service could not be located.'
August 9th, 2012 4:18am

Message : [EXCH]-Error when contacting the AS service at https://ExchServer2007.domain/EWS/Exchange.asmx. Hi, Was that a copy/paste mistake or is the url missing .com? Please check the URLs you have configured for WebServicevirtualdirectory. Example: Get-WebServicesVirtualDirectory EWS* |fl Identity,*url* Martina Miskovic
Free Windows Admin Tool Kit Click here and download it now
August 9th, 2012 4:28am

May I know where did you run the URL test in IE as Simon suggested? The error returned by Test-OutlookWebServices is: Type : Error Message : When contacting https://ExchServer2007.domain/EWS/Exchange.asmx received the error The remote name could not be resolved: 'ExchServer2007.domain' Type : Error Message : [EXCH]-Error when contacting the AS service athttps://ExchServer2007.domain/EWS/Exchange.asmx. The elapsed time was 250 milliseconds. The error is highly likely caused by your DNS error, I would suggest you verify your DNS record and Ping the URL ExchServer2007.domain/EWS/Exchange.asmx to make sure it is accessible. If necessary, run https://localhost/ews/exchange.asmx on yur CAS server to make sure the EWS is working fine. Regarding the Test-Email Autoconfiguration, it's used to test the Autodiscover service and the results returned are those stored in AD. That's why you did not receive error about EWS service. Fiona Liao TechNet Community Support
August 9th, 2012 7:40am

Thanks Martina for your reply. Its a copy paste mistake. I did check my both URLs for web service virtual directory and those are correct with FQDN.
Free Windows Admin Tool Kit Click here and download it now
August 11th, 2012 7:42am

Thanks Fiona for your inputs, I tried accessing exchange.asmx even from my client machine and it shows me wsdl as expected. Even i tried doing service.url = new Uri("my exchange service URL"); Then it gives me exception as 'Autodiscover blocked a potentially insecure redirection to https://ExchServer2007.domain.com/autodiscover/autodiscover.xml.' And when i tried using other overloaded method of AutoDiscoverUrl with delegate it gave me error as 'AutoDiscover service could not be located.'. Anyones help would be highly appreciated. I am blocked on this.
August 11th, 2012 7:49am

when i checked through fiddler i came to know that actual error is access denied. On my exchange server i have a user who is local administrator too. If i try to access that user's mailbox it works properly. Can someone please guide me what should i do to overcome this permission problem?
Free Windows Admin Tool Kit Click here and download it now
August 13th, 2012 1:53am

Hi, Thanks for your update. My suggestion is: 1. Check the IIS log to see what is the exact error code returned (like 401.1 or 401.2, see http://support.microsoft.com/kb/318380); 2. and then check the user account you are using to run the cmdlet (To run the Test-OutlookWebServices cmdlet, the account you use must be delegated the Exchange Server Administrator role and membership in the local Administrators group for the target server.) 3. and the permission settings on the virtual directory /EWS: http://blogs.technet.com/b/exchange/archive/2008/02/01/3404755.aspx Hope it is helpful.Fiona Liao TechNet Community Support
August 13th, 2012 10:45pm

Hi, Thanks for your update. My suggestion is: 1. Check the IIS log to see what is the exact error code returned (like 401.1 or 401.2, see http://support.microsoft.com/kb/318380); 2. and then check the user account you are using to run the cmdlet (To run the Test-OutlookWebServices cmdlet, the account you use must be delegated the Exchange Server Administrator role and membership in the local Administrators group for the target server.) 3. and the permission settings on the virtual directory /EWS: http://blogs.technet.com/b/exchange/archive/2008/02/01/3404755.aspx Hope it is helpful.Fiona Liao TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
August 13th, 2012 10:54pm

Do not forget the fireall if there is, because the error message is remote server could not be resolved. May be there is not kind of network error.Fiona Liao TechNet Community Support
August 13th, 2012 10:57pm

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

Other recent topics Other recent topics