简体   繁体   English

找不到自动发现服务

[英]autodiscover service couldn't be located

We are trying to move email from our premises to cloud and facing "autodiscover service couldn't be located" Error. 我们正在尝试将电子邮件从我们的场所移至云,并面临“找不到自动发现服务”错误。 For some emails same code is working fine but facing issue with with random emails . 对于某些电子邮件,相同的代码可以正常工作,但遇到随机电子邮件的问题。 Is there something missing in cloud migration . 云迁移中缺少什么吗?

Below is my Code: 以下是我的代码:

_exchangeService = new ExchangeService(ExchangeVersion.Exchange2013); _exchangeService =新的ExchangeService(ExchangeVersion.Exchange2013); _exchangeService.TraceEnabled = true; _exchangeService.TraceEnabled = true; _exchangeService.Credentials = new WebCredentials(_mailbox.EmailAddress, decryptedPassword); _exchangeService.Credentials =新的WebCredentials(_mailbox.EmailAddress,unlockedPassword);

             //   _exchangeService.EnableScpLookup = true;
                    _exchangeService.AutodiscoverUrl(_mailbox.EmailAddress, SslRedirectionCallback);

Any Help would be appreciated . 任何帮助,将不胜感激 。

I'm not clear on why you're using "code" to perform an Exchange migration from on-premise to your cloud presence. 我不清楚您为什么要使用“代码”执行从内部部署到云存在的Exchange迁移。 I've performed such tasks multiple times and never did I have to modify any "code" so-to-speak. 我已经多次执行这样的任务,而不必修改任何可以说的“代码”。 From what source did you update this code? 您从什么来源更新此代码?

In regards to "Autodiscover" in general, when performing a migration like this, you generally update your autodiscover DNS records such that mail flow is directed to the cloud presence. 通常,关于“自动发现”,在执行这样的迁移时,通常会更新自动发现DNS记录,以便将邮件流定向到云状态。 From there, the cloud presence makes the decision to insert the messages into "in-cloud" mailboxes or forward them down to a mailbox that still lives "on-prem". 从那里开始,云的存在决定将消息插入“云中”邮箱,或将其转发到仍然“本地”的邮箱。 This is common as migrations can take a long time to complete, and mail flow can't sustain much disruption. 这很常见,因为迁移可能需要很长时间才能完成,并且邮件流无法承受太多中断。

Any more details you can provide to clear up what you're doing and what you're trying to do will be helpful. 您可以提供任何更多详细信息来弄清自己正在做什么和想要做什么,这将有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM