EWS AutodiscoverUrl无法正常工作(首先请求其工作& 2nd,3rd..request它无法正常工作)在Exchange Server 2010 SP2中。 [英] EWS AutodiscoverUrl is not working properly(first request its working & 2nd , 3rd..request its not working) in Exchange Server 2010 SP2.

查看:331
本文介绍了EWS AutodiscoverUrl无法正常工作(首先请求其工作& 2nd,3rd..request它无法正常工作)在Exchange Server 2010 SP2中。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图验证电子邮件地址是否有效使用ews api,所以我将用户的电子邮件和密码传递给AutodiscoverUrl 方法,首先请求 我能够获得自动发现URl,并且从第2次或第3次请求autodiscoverurl失败
并使用相同的用户凭据(错误表明Microsoft.Exchange.WebServices.Data.AutodiscoverLocalException:无法找到自动发现服务。)但是经过一段时间后,它的工作正常,凭借相同的凭证。

I am trying to validate the email address is valid or not using ews api, so i am passing the email and password of user to AutodiscoverUrl method, in first request i am able to get autodiscover URl and from 2nd or 3rd request autodiscoverurl failed with  the same user credentials(error says that Microsoft.Exchange.WebServices.Data.AutodiscoverLocalException: The Autodiscover service couldn't be located.) but after some time its working fine with the same credentials.

您可以帮我们解决上述问题。

could you please us to fix the above problem.

提前致谢

问候,

Prasad。

推荐答案

我建议您启用跟踪
https://msdn.microsoft.com/en-us/library/office/dn495632%28v=exchg.150%29.aspx
 然后比较做什么和不做什么的痕迹ķ。此外,如果您已经拥有EWS连接,则可以使用resolveName

https://msdn.microsoft.com/en-us/library/office/gg274399(v=exchg.80).aspx
 而不是自动发现你会更快的方式检查电子邮件地址(如果您不解析PrimarySMTPAddress,请确保在地址
前加上'smtp:'来支持。

I'd suggest you enable tracing https://msdn.microsoft.com/en-us/library/office/dn495632%28v=exchg.150%29.aspx and then compare the trace of what does and doesn't work. Also if you already have an EWS connection you could use resolveName https://msdn.microsoft.com/en-us/library/office/gg274399(v=exchg.80).aspx instead of Autodiscover which you would be a much faster way to check an Email Address (if your not resolving the PrimarySMTPAddress make sure you prefix the address you want to check with 'smtp:' .

欢呼

Glen

cheers
Glen


这篇关于EWS AutodiscoverUrl无法正常工作(首先请求其工作& 2nd,3rd..request它无法正常工作)在Exchange Server 2010 SP2中。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆