The Autodiscover service couldn't be located.

Status
Not open for further replies.
C

cshenbagaraj

Please help me out sruggling in this for a long time..

error: The Autodiscover service couldn't be located.
my code is
try
{
// Connect to Exchange Web Services as user1 at contoso.com.
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010);
ServicePointManager.ServerCertificateValidationCallback = CertificateValidationCallBack;
service.Credentials = new WebCredentials(" ews@MydomainName.com" , " password" );
//service.UseDefaultCredentials = true;
service.AutodiscoverUrl(" ews2@MydomainName.com" , ValidateRedirectionUrlCallback);
//service.Url = new Uri(" https://serverName.DomainName.com/ews/Exchange.asmx" );

// Create the e-mail message, set its properties, and send it to user2@contoso.com, saving a copy to the Sent Items folder.
EmailMessage message = new EmailMessage(service);
message.Subject = " Interesting" ;
message.Body = " The proposition has been considered." ;
message.ToRecipients.Add(" ews1@MydomainName.com" );
message.SendAndSaveCopy();
// Write confirmation message to console window.
//Console.WriteLine(" Message sent!" );
//Console.ReadLine();
}
catch (Exception ex)
{
//Console.WriteLine(" Error: " + ex.Message);
//Console.ReadLine();
}
i browsed- https://MyserverName.DomainName.com/autodiscover/autodiscover.xml
it displays
<?xml version=" 1.0" encoding=" utf-8" ?>
- <Autodiscover xmlns=" http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006" >
- <Response>
- <Error Time=" 17:35:23.3125000" Id=" 3155127929" >
<ErrorCode>600</ErrorCode>
<Message>Invalid Request</Message>
<DebugData />
</Error>
</Response>
</Autodiscover>

please give me a right solution for this as soon as faster
 
S

Steve Goodman

Hiya,

Do you have an autodiscover DNS record, such as autodiscover.domainname.com with an appropriate SSL certificate?

Steve

Steve Goodman
Check out my Blog for more Exchange info or find me on Twitter
 
C

cshenbagaraj

how do i check this whether it has autodiscover DNS record with appropriate SSL certificate?

As im new to this i don have much knowlwdge in this

please help me out

shenbagaraj
 
S

Steve Goodman

Hi Shenbagaraj,

A good first point of call is the Exchange Remote Connectivity Analyser.

You should be able to test autodiscover, and it will let you know what doesn't look correct and why.

Steve

Steve Goodman
Check out my Blog for more Exchange info or find me on Twitter
 
C

cshenbagaraj

Hi steve
Its working well for me now i can programmatically send and receive mails.

but when i tried to create users using powershell scripts WsManConnectioninfo class in missing in System.Management.Automation ...

i uninstall it in GAC now im receiving error " mmc could not create snapin " and could not open the exchange server and powershell can u help me out.. very urgent :-(

shenbagaraj
 
C

cshenbagaraj

i uninstall System.management.Automation from GAC and reinstall the dll which is in reference folder but now exchange server itself is not opening.shenbagaraj
 
N

Novak Wu

Hi,

Is there any error message when trying to open Exchange server or EMC?

At this stage, I suggest you back up Exchange server database and try to reinstall .Net Framework 3.5 on the problematic machine.

If there is any error message, please post it here for research. Also, please open Event Viewer and check whether there is any Event error. If so, please post it here.

Thanks.

Novak


 
A

Amonra

Can you please provide the sample code of connection with Exchange Server....

That will be a gr8 help for me..
 
S

Steve Goodman

Can you please provide the sample code of connection with Exchange Server....

That will be a gr8 help for me..

Probably best to try a new thread in the Exchange development forums, and to be a little more specific with regards to what you're trying to achieve.
Steve

Steve Goodman
Check out my Blog for more Exchange info or find me on Twitter
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
C Exchange server 2010 error "The Autodiscover service couldn't be located." Exchange Server Administration 1
C Autodiscover Service Configuration Exchange Server Administration 5
N Exchange 2007 - How to configure the autodiscover service? Using Outlook 22
Q Problems with Autodiscover Outlook 2016 Using Outlook 0
B AutoDiscover Forensics Exchange Server Administration 0
EXChange2013 Exchange 2013 AutoDiscover Tweaks? Exchange Server Administration 0
A Exchange 2003 Outlook 2010 64 Bit- AutoDiscover Connection Err - Certificate Exchange Server Administration 9
M Outlook 2007 AutoDiscover Using Outlook 0
A Exchange Autodiscover SSL issue Exchange Server Administration 7
M Initial Outlook Configuration with AutoDiscover populates wrong email address Using Outlook 5
N Outlook 2007 Clients Pointed to Wrong Domain Name for Autodiscover Using Outlook 2
N Exchange 2007 SP1 + Outlook 2007/2010 - Autodiscover for Outlook Anywhere and Out of Office not working Using Outlook 1
S Load balance Autodiscover with multiple CAS servers. Exchange Server Administration 2
S Load balance Autodiscover with multiple CAS servers. Exchange Server Administration 3
K testing autodiscover and exchange coexistence Exchange Server Administration 2
D CAS Autodiscover using -rpcclientaccessserver Exchange Server Administration 5
J Autodiscover accounts on exchange 2003 with Outloook 2010 not working Using Outlook 4
Z Autodiscover Points to defunct Exchange 2010 Server Exchange Server Administration 5
M Autodiscover not configuring Outlook Anywhere Using Outlook 10
B Autodiscover error 0x800c8203 and encrypted connection is not available Exchange Server Administration 3
P Autodiscover URLs Exchange Server Administration 15
C Autodiscover Exchange Server Administration 6
I Exchange 2010 Profile AutoDiscover not working for some users Exchange Server Administration 1
S Exhcange 2010 autodiscover virtual directory Exchange Server Administration 4
D External Autodiscover Exchange Server Administration 3
S Exchange 2010 Autodiscover Problems, cannot connect Outlook clients using Autodiscover / Outlook Any Exchange Server Administration 4
G Exchange 2010/Outlook 2007 Can't get autodiscover to work for some users, but others work fine Exchange Server Administration 3
S Autodiscover issue Exchange 2007 Using Outlook 4
P Autodiscover will not work Exchange Server Administration 13
K Exchange 2010 Autodiscover Exchange Server Administration 1
P Autodiscover fails (Exchange 2010) Exchange Server Administration 7
P Autodiscover issues on Exchange 2010 Exchange Server Administration 7
S Exchange 2010 Outlook 2010 Autodiscover fails Exchange Server Administration 22
C Getting Autodiscover to work with other web servers ... Using Outlook 4
B move mailbox- autodiscover Exchange Server Administration 25
T Autodiscover authentication Exchange Server Administration 2
A autodiscover issue with OL2010 but no issue with OL2007 Exchange Server Administration 10
K Autodiscover and SRV records Using Outlook 10
S Autodiscover redirected Using Outlook 2
C Autodiscover Exchange Server Administration 5
C ex2010 outlook03 autodiscover working??? Using Outlook 5
S Autodiscover two AD sites two cas arrays Exchange Server Administration 4
O Autodiscover Exchange Server Administration 4
S Autodiscover FQDN certificate for secondary domain email? Exchange Server Administration 1
K Remove AlternativeMailbox - Autodiscover Exchange Server Administration 5
S Exchange 2010 autodiscover Exchange Server Administration 4
R Autodiscover virtual directory - recreation fails Exchange Server Administration 1
J Autodiscover not issuing CAS array to Outlook Clients Exchange Server Administration 2
A share one record for autodiscover between exch 2007 and exch 2010 Exchange Server Administration 4
O SSL certificate needed for autodiscover.domain.com Exchange Server Administration 12
Similar threads


















































Top