The Autodiscover service could not be located

I am developing small EWS client. For initial testing I wrote simple code:
service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
service.Credentials = new WebCredentials("[email protected]", "password");
service.TraceEnabled = true;
ServicePointManager.ServerCertificateValidationCallback = CertificateValidationCallBack;
service.AutodiscoverUrl("[email protected]");
I included CertificateValidationCallBack method from
this MSDN page.
I have two Exchange servers. For one exchange server this code worked fine for sending a new email.
However on another server I got following exception:
The Autodiscover service could not be located
at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.InternalGetLegacyUserSettings[TSettings](String emailAddress, List`1 redirectionEmailAddresses, Int32& currentHop)
at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.GetLegacyUserSettings[TSettings](String emailAddress)
at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.InternalGetLegacyUserSettings(String emailAddress, List`1 requestedSettings)
at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.GetUserSettings(String userSmtpAddress, UserSettingName[] userSettingNames)
at Microsoft.Exchange.WebServices.Data.ExchangeService.GetAutodiscoverUrl(String emailAddress, ExchangeVersion requestedServerVersion, AutodiscoverRedirectionUrlValidationCallback validateRedirectionUrlCallback)
at Microsoft.Exchange.WebServices.Data.ExchangeService.AutodiscoverUrl(String emailAddress, AutodiscoverRedirectionUrlValidationCallback validateRedirectionUrlCallback)
at Microsoft.Exchange.WebServices.Data.ExchangeService.AutodiscoverUrl(String emailAddress)
at EwsDctmSyncer.Test.Main(String[] args) in C:\ewswork\csws\EwsTest\EwsExp\Test.cs:line 21
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
When I look at the traces on console, I found this main problem: 
failed: WebException (The underlying connection was closed: Could not
establish trust relationship for the SSL/TLS secure channel.)
However I dont understand what could be wrong with this second instance of Exchange Server. Can anyone pin point what could be wrong. I am puzzled since to my knowledge both the instances are similarly configured.
Added full trace as a reply to this post.

Full Exchange Service Trace:
<Trace Tag="AutodiscoverConfiguration" Tid="9" Time="2013-12-16 15:40:33Z">
Starting SCP lookup for domainName='domain1.com', root path=''
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="9" Time="2013-12-16 15:40:33Z">
Searching for SCP entries in LDAP://CN=Configuration,DC=domain1,DC=com
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="9" Time="2013-12-16 15:40:33Z">
Scanning for SCP pointers Domain=domain1.com
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="9" Time="2013-12-16 15:40:33Z">
No SCP pointers found for 'Domain=domain1.com' in
configPath='CN=Configuration,D
C=domain1,DC=com'
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="9" Time="2013-12-16 15:40:33Z">
Scanning for SCP urls for the current computer Site=Default-First-Site-Name
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="9" Time="2013-12-16 15:40:33Z">
Adding (prio 1)
'https://exchangeserver.domain1.com/Autodiscover/Autodiscover.xm
l' for the 'Site=Default-First-Site-Name' from
'LDAP://CN=exchangeserver,CN=Auto
discover,CN=Protocols,CN=exchangeserver,CN=Servers,CN=Exchange
Administrative Group (adminGroup),CN=Administrative Groups,CN=domain1,CN=Microsoft
Exchange,
CN=Services,CN=Configuration,DC=domain1,DC=com' to the top of the list (exact ma
tch)
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="9" Time="2013-12-16 15:40:33Z">
Trying to call Autodiscover for [email protected] on
https://exchangeserver.domain1.com/Autodiscover/Autodiscover.xml.
</Trace>
<Trace Tag="AutodiscoverRequestHttpHeaders" Tid="9"
Time="2013-12-16 15:40:33Z">
POST /Autodiscover/Autodiscover.xml HTTP/1.1
Content-Type: text/xml; charset=utf-8
Accept: text/xml
User-Agent: ExchangeServicesClient/15.00.0516.014
</Trace>
<Trace Tag="AutodiscoverRequest" Tid="9" Time="2013-12-16 15:40:33Z" Version="15.00.0516.014">
<Autodiscover
xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006">
<Request>
<EMailAddress>[email protected]</EMailAddress>
<AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscov
er/outlook/responseschema/2006a</AcceptableResponseSchema>
</Request>
</Autodiscover>
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="9" Time="2013-12-16 15:40:46Z">
failed: WebException (The underlying connection was closed: Could not
establish trust relationship for the SSL/TLS secure channel.)
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="9" Time="2013-12-16 15:40:46Z">
Trying to call Autodiscover for [email protected] on
https://domain1.com/aut
odiscover/autodiscover.xml.
</Trace>
<Trace Tag="AutodiscoverRequestHttpHeaders" Tid="9"
Time="2013-12-16 15:40:46Z">
POST /autodiscover/autodiscover.xml HTTP/1.1
Content-Type: text/xml; charset=utf-8
Accept: text/xml
User-Agent: ExchangeServicesClient/15.00.0516.014
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="9" Time="2013-12-16 15:40:47Z">
failed: WebException (Unable to connect to the remote server)
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="9" Time="2013-12-16 15:40:47Z">
Trying to call Autodiscover for [email protected] on
https://autodiscover.domain1.com/autodiscover/autodiscover.xml.
</Trace>
<Trace Tag="AutodiscoverRequestHttpHeaders" Tid="9"
Time="2013-12-16 15:40:47Z">
POST /autodiscover/autodiscover.xml HTTP/1.1
Content-Type: text/xml; charset=utf-8
Accept: text/xml
User-Agent: ExchangeServicesClient/15.00.0516.014
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="9" Time="2013-12-16 15:40:47Z">
failed: WebException (The remote name could not be resolved:
'autodiscover.domain1.com')
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="9" Time="2013-12-16 15:40:47Z">
Trying to get Autodiscover redirection URL from
http://autodiscover.domain1.com/
autodiscover/autodiscover.xml.
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="9" Time="2013-12-16 15:40:47Z">
Request error: The remote name could not be resolved:
'autodiscover.domain1.com'
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="9" Time="2013-12-16 15:40:47Z">
No Autodiscover redirection URL was returned.
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="9" Time="2013-12-16 15:40:47Z">
Trying to get Autodiscover host from DNS SRV record for domain1.com.
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="9" Time="2013-12-16 15:40:47Z">
DnsQuery returned error error 'DNS name does not exist' error code 0x0000232B.
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="9" Time="2013-12-16 15:40:47Z">
No appropriate SRV record was found.
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="9" Time="2013-12-16 15:40:47Z">
No matching Autodiscover DNS SRV records were found.
</Trace>

Similar Messages

  • The OracleDBConsoleORAHAS service could not be started.

    Dear All,
    I installed Oracle10g on Windows XP system successfully but when I am going to start the dbconsole it gives the following error.
    C:\oracle10g\product\10.2.0\db_1\BIN>emctl start dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    http://MOHAMMAD-HASHIM.ROSHAN.AF:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 10g Database Control ...The OracleDBConsoleOR
    AHAS service is starting.
    The OracleDBConsoleORAHAS service could not be started.
    A service specific error occurred: 1.
    More help is available by typing NET HELPMSG 3547.
    Can anybody help me out from this?
    Thanks in Advance
    Hashim

    Check the following:
    - You must to add your hostname in your etc/hosts file of this way
    127.0.0.0 hostname.domain hostname
    - Check the availability of the port 1158. For this check
    telnet hostname 1158
    - Check the log files of dbconsole. Normaly exists a log directory in this location
    ORACLE_HOME\sysman
    - Check that the listener and database is up
    Regards

  • The song...could not be used because the original file could not be located

    I just used Garageband this past Sunday, no problem...I open it up tonight and I get this message:
    "The song...could not be used because the original file could not be located."
    I click the OK button and it comes up with another song title, and I have clicked it 20 or 30 times already and it keeps coming up and I can't access anything else and it is frustrating!
    Anyone know how to stop the madness?!
    iMac 2.7 GHz Intel Core i5, 8 GB RAM, 1 TB HD, OS X 10.9.3
    Garageband 10.0.2

    "The song...could not be used because the original file could not be located."
    GarageBAnd cannot find the recorded media or imported audio files, that should be in the Media folder inside your project.
    Crtl-click the GarageBand icon in the Dock and use Force-quit to quit your current project.
    Then ctrl-click the .band file of your current project and select  "Show package contents." open the Media folder inside and check if all recorded media and imported audio files are there and you can play them.
    Have you moved your project or has it been transferred by mail?
    If the media are missing or do not play, there is not much you can do. If all media are there, repair the permissions of the project. If it is on an external drive, move it to your system drive and try there.
    If you cannot rescue the project, copy the media file out of the project, so you can use the recordings to recreate the song.You can launch GarageBand into the file "recent songs" panel to create a new project or to pick a recent project, by holding down  the alt/options key while double-clicking the GarageBand icon.

  • The OracleXETNSListener service could not be started.

    I have just installed OracleXE but the listener wont start. This is the message I get when trying to start the server:
    C:\SVV\oraclexe\app\oracle\product\10.2.0\server\BIN>net start OracleXETNSListener
    The OracleXETNSListener service is starting.
    The OracleXETNSListener service could not be started.
    The service did not report an error.
    More help is available by typing NET HELPMSG 3534.
    C:\SVV\oraclexe\app\oracle\product\10.2.0\server\BIN>net start OracleServiceXE
    The requested service has already been started.
    More help is available by typing NET HELPMSG 2182.
    C:\SVV\oraclexe\app\oracle\product\10.2.0\server\BIN>
    Any good ideas??

    Hi Jer
    There is no listener.log in that folder, I assume it is because it is initialized the first time the listener starts. The only file in the directory is sqlnet.log, it contains this information:
    Fatal NI connect error 12641, connecting to:
    (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
    VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
    Time: 05-SEP-2006 16:32:13
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12641
    TNS-12641: Authentication service failed to initialize
    ns secondary err code: 0
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
    Also after reading a lot of posts on this forum, I have tried to write:
    C:\>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 07-SEP-2006 08:02
    :13
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Message 1053 not found; No message file for product=NETWORK, facility=TNSTNS-125
    57: Message 12557 not found; No message file for product=NETWORK, facility=TNS
    TNS-12560: Message 12560 not found; No message file for product=NETWORK, facility=TNS
    TNS-00527: Message 527 not found; No message file for product=NETWORK, facility=TNS
    Maybe this can cast some more light on the situation??

  • The CSadmin service could not be started.

    I am Upgrading from 3.3 to 4.2...
    When I upgrade from 3.3.4 to 4.1, 4.1 is not working.
    No error during the install, but when I try to start csadmin (net start csadmin) I have this error
    "The CSadmin service could not be started. error 3523"
    I tried exactelly the same upgrade on other machines with the same config and it's working well.
    I have tried to clean the registory manually and using the clean tool on the CD, it doesn't help.
    The fresh install of 4.2 is not working better, same error.
    Any idea about what it could be ?
    I am wokring on ACS for windows with Windows Server 2003 SP2.
    Thanks For your help.

    Have you tried restarting the service from services.msc. Also, try rebooting the server. If that doesn't help, then you need to uninstall theCS software and reinstall it.
    If you have already tried clean utility to uninstall the ACS and issue still persist. Please disable all the ACS services via services.msc and then try to uninstall it.
    Please let me know if you have any query or concern.
    Regads,
    JK
    Do rate helpful posts-

  • The Oracleagent10gAgent service could not be started...

    Hi,
    i am getting following when starting agent
    d:\oem\agent10g\BIN>emctl start agent
    Oracle Enterprise Manager 10g Release 10.2.0.2.0.
    Copyright (c) 1996, 2006 Oracle Corporation. All rights reserved.
    The Oracleagent10gAgent service is starting.......
    The Oracleagent10gAgent service could not be started.
    A service specific error occurred: 2.
    More help is available by typing NET HELPMSG 3547.
    Thanks,

    Can you please check what is written to the log on EM directory which is probably under Oracle_HOME\servername_sid\sysman\log
    directory
    You will see the actual error instead of fancy microsoft errors
    A. Coskan GUNDOGAR
    Oracle DBA
    http://coskan.wordpress.com
    “A man's errors are his portals of discovery.”
    James Joyce

  • The song "---" could not be used because the original file could not be located. Would you like to locate it?

    I have 2 users on my computer and it is causing an error message telling me the original file could not be located. How can I fix this?

    Probably not every one, but you will have to do it several times. Right click on the name of the song, show in window's explorer and when it can't it should give you a dialogue to find the song.
    Once it finds one it'll offer to find more and you can locate stuff that way.

  • Getting error: "The ordinal 449179364 could not be located in the dynamic link library WINMM.dll"

    So when I start rendering a video, I get the message:
    "The ordinal 449179364 could not be located in the dynamic link library WINMM.dll."
    This is followed by a "transcoder error" message, and then an application crash.  I looked for WINMM.dll, and found it here:
    C:\Windows\winsxs\x86_microsoft-windows-audio-mmecore-base_31bf3856ad364e35_6.1.7600.16385 _none_b5b6125db303b0f8
    Has anyone encountered this before, or found a solution?
    Many thanks.

    When sharing burn the project to a Folder rather than Disk. Does this complete? If so use something like ImgBurn to write your DVD from that folder.
    What brand of disk are you using (ImgBurn can tell you)?
    You seem to have covered many of the basics, but here is my usual list (I don't recall seeing you mention your graphic/sound drivers). It will be handy to see the Gspot analysis.
    Some basics:
    Install all Windows Updates.
    Install latest version of Apple QuickTime (v7.6.7 at time of writing). Even if you don't use QuickTime, PRE relies heavily on it.
    Install most recent graphics and sound drivers from the manufacturers web sites.
    Run Disk Cleanup.
    Run Defragmenter.
    Temporarily disable any anti-virus realtime scanning.
    Use the GSpot Codec Information Utility to analyse the file and post screen image.
    Post back here with the necessary information described here: Got a Problem? How to Get Started
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children

  • The ordinal 282 could not be located in the dynamic link lirary IERTUTIL.DLL

    Hi all
    I've installed the latest Updates on my SBS 2011 machine yesterday.
    And now I get the "The ordinal 282 could not be located in the dynamic link library IERTUTIL.DLL" error when I try to start the IE.
    Any idea?
    Best regards, Chris

    Hi Chris,
    Would you please let me know the version information of IE? Did you install any update for the IE? Please navigate
    to C:\Windows\System32 and check if IERTUTIL.DLL file exists?
    On current situation, please run
    sfc /scannow command to scan all protected system files. Any find?
    If any update, please feel free to let us know.
    Hope this helps.
    Best regards,
    Justin Gu

  • The ordinal 303 could not be located in the dynamic link library iertutil.dll

    As discussed in
    http://answers.microsoft.com/en-us/windows/forum/windows_7-performance/getting-error-using-rdc-the-ordinal-303-could-not/86d4479e-3152-4052-a959-1f86fe608774we are experiencing an issue with patch 2956283.  After rebooting, our users can no longer
    use IE and receive the error "The ordinal 303 could not be located in the dynamic link library iertutil.dll".  I have seen this on several machines and it may involve Lync.   The title of the error is "Microsoft Lync: communicator.exe
    - Ordinal Not Fount".  After removing 2956283 everything starts working again.  Any fix for this?  It appears to be pretty wide spread based on the posts in the previously mentioned forum. 

    Hi Frank,
    Why did you install that package for your system? Did you encounter the issue in the article below?
    Internet Explorer 11 crashes when you turn on or turn off Enterprise Mode in the Tools menu
    http://support.microsoft.com/kb/2956283
    If no, please uninstall it.
    If yes, check the following settings:
    1. Press WIN+R to open the Run window, type
    SystemPropertiesAdvanced and press Enter.
    2. Click the environment variables... button.
    3. Find the path variable and check if c:\windows\system32 (or
    %SystemRoot%\system32) is present between all the paths.
    If not, add it at the end of the entire string (preceded by a semi colon) and click Always ok.
    4. Check if you have got IERTUTIL.DLL in c:\windows\system32.
    Karen Hu
    TechNet Community Support

  • The ordinal 139 could not be located in the dynamic link library iertutil.dll

    I am getting this error while launching IE on my computer:
    The ordinal 139 could not be located in the dynamic link library iertutil.dll
    I have IE 11 installed on windows7 32 bit.

    Hi Bansal,
    When does this error start to occur? Check Event Viewer and see if we could find any other messages.
    Take a try with the SFC command:
    Use the System File Checker tool to repair missing or corrupted system files
    Further, try the following if SFC won't help:
    How to repair or reinstall Internet Explorer in Windows
    Best regards
    Michael Shao
    TechNet Community Support

  • FCP X can't import iTunes music - says "The song "Warp Factor" could not be used because the original file could not be located."

    FCP X can't import iTunes music - says "The song "XXXXX" could not be used because the original file could not be located."
    I saw the reply that iTunes was probably moved. I restored it from Time Machine when my hard drive crashed. How do I fix it to import into FCP X?

    I figured it out by going into iTunes and clicking on the Library link under File. This bring up a box that allows the music files to be reconnected to the iTunes music folder.
    FCP X now sees the music and it can be placed into the project timeline.

  • I get an error message saying that the original file could not be located on about half the songs in my library. Not all but half.

    I'm unable to play approx. half the songs in my library. I get an error message saying that the original file could not be located. I am asked if I want to locate the file, I click locate and get  a screen with a list of confusing looking files and nothing seems to solve the problem. As is probably apparent by now I am not particularly computer literate. I don't understand why this problem occurs on only half my library.

    This "original file cannot be found" thing happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, or that the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout,or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to get info, then cancel when asked to try to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or a drive letter has changed, it should be possible to reverse the actions.
    Alternatively, as long as you can find a location holding the missing files, then you should be able to use my FindTracks script to reconnect them to iTunes .
    tt2

  • Itunes error "This song could not be used because the original file could not be located"

    i keep getting the error that the _____________song could not be used because the original file could not be found. Would you like to loacte? " when i try to locate it does not find the song anywhere on the computer. Please advise

    This happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, or that the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout,or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to get info, then cancel when asked to try to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or a drive letter has changed, it should be possible to reverse the actions.
    Alternatively, as long as you can find a location holding the missing files, then you should be able to use my FindTracks script to reconnect them to iTunes .
    tt2

  • HT1725 Many of my songs can not be accessed.  It says the orignal file could not be located.  When I click locate it might show the song under documents but in faded print.  Can not access.

    It says the original file can not be located.  If I do find it under documents it can not be accessed.  (faded prilnt)

    Probably not every one, but you will have to do it several times. Right click on the name of the song, show in window's explorer and when it can't it should give you a dialogue to find the song.
    Once it finds one it'll offer to find more and you can locate stuff that way.

Maybe you are looking for

  • Can I use home sharing on separate accounts on same computer?

    We have iPods (one 3G and one 4G) and separate accounts on our Mac and on iTunes but would like to share some but not all of the same things through home sharing. Is this possible? I haven't found a way to do it. The information I found available onl

  • Is there a way to change the icon associated with icloud account?

    Is there a way to change the icon associated with my iCloud account? It's currently a rose and i do not like it.

  • Cannot open Canon 6D Raw files in CS6 [was:Camera raw update]

    Could someone please help me. I am struggling to get Photoshop CS6 to accept my Canon 6d raw files. As far as I can tell I have downloaded Camera raw 8.3 and have run the installer but still Cs6 won`t accept my images. I`m fairly new to CS6 so could

  • Problem beginning a process with a pick

    Hi, I'm using the BPM suite v10.1.2.0.2. The following process, instantiated by a pick with two onMessage, doesn't function. You can find here the useful bpel code : <partnerLink myRole="BPELProcess1Provider" name="PartnerLink_1" partnerLinkType="cli

  • Snow leapord 10.6.3 on PC with instalation disk?

    ok so i was just wondering if i had a snow leapord 10.6.3 instalation disk could i just pop it into my windows xp computer could i install it and run it on my pc? and still have windows xp and snowleapord on one computer? stupid questions but im just