根据系统管理员的说明,Exchange 2010(SP3)模拟已正确配置。EWS模拟错误“提供的电子邮件地址无效。”虽然它是
这个问题似乎是与代码:
private static ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);
//service.Credentials = new NetworkCredential(user,password,domain) OK
//service.AutodiscoverUrl OK
...
service.ImpersonatedUserId = new ImpersonatedUserId(ConnectingIdType.SmtpAddress,usrEmail);
//create a contact and try to save it in a particular contacts subfolder
contact.Save(subfolder.Id);
这是它与错误吹“这是供给是无效的电子邮件地址。”这对我来说确实没有意义,因为我提供了我知道100%有效的电子邮件地址。
我试着用谷歌搜索这个,我根本不感到幸运。
P.S.我尝试了各种不同的模拟场景与ConnectingIdType.SmtpAddress和ConnectingIdType.PrincipalName,没有区别。
任何想法如何解决这个问题?提前谢谢了。
Exchange模拟配置为组织中的所有用户 - 见https://msdn.microsoft.com/en-us/library/bb204095(exchg.140).aspx – Miha