在使用C#(Outlook加载项)获取电子邮件ID时发出问题,它返回x500代码 [英] Issue while fetching email-id using C#(Outlook Add-ins), it's returning x500 code
问题描述
在为与Office 365连接的Outlook创建加载项时,使用C#获取Email-ID时遇到问题。我使用了以下代码。
I am facing problem while fetching Email-ID using C# while creating Add-ins for Outlook connected with Office 365. I used following code.
在内部环境中使用代码时,它正在执行if块的代码并返回正确的电子邮件,但是在客户端执行代码时某些代码正在进入在else阻止并返回我的X500消息,如 / o = ExchangeLabs / ou = Exchange管理
组(FYDIBOHF23SPDLT)/ cn =收件人/ cn = e381946dd1654c5ca33a3023e96xxxxxx-testp
While using code in in-house environment it's executing code of if block and returning me proper email, But while executing code at client side somehow code is entering in else block and returning me X500 message like /o=ExchangeLabs/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=e381946dd1654c5ca33a3023e96xxxxxx-testp
任何人都可以让我知道为什么代码进入else块(原因是什么,如果创建的帐户是通常的不同或帐户的一些设置问题),如果是,那么如何解决它(它需要在帐户设置方修复或我需要
所以带代码的东西)。
can anybody let me know why code is entering in else block(What is the reason for it, if account created is something different then usual or some setting problem with account), If yes then how to fix it(it require fix at account setting side or i need to so something with code).
如果我需要更改代码,那么我可以通过代码做什么,或者我如何将X500消息更改为正确的电子邮件ID。我正在使用VS2015和Outlook 2016。
If i need to made changes in code then what best i can do through code or how i can change X500 message to proper email ID. I am using VS2015 and Outlook 2016.
推荐答案
您好
Amit Sharma Helm ,
我们的论坛专注于Microsoft团队,基于你的线程,问题与开发有关展望,所以我b $ b 将此主题移至开发者论坛的展望,感谢您的理解。
Our forum focus on the Microsoft Teams, based on your thread, the problem is related to the development of Outlook ,so I moved this thread to the outlook for developer forum ,Thanks for your understanding.
问候,
Leon Lu
这篇关于在使用C#(Outlook加载项)获取电子邮件ID时发出问题,它返回x500代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!