- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我在尝试创建约会时遇到错误:
The expected XML node type was XmlDeclaration, but the actual type is Element.
当我调用 AutodiscoverUrl
时发生此异常。
我创建了一个 Web 服务来执行此操作。
[webMethod]
CreateAppointment()
{
var service = new ExchangeService(ExchangeVersion.Exchange2007_SP1)
{
Credentials = new WebCredentials("myAcount@gmail.com", "mypassowrd")
};
service.AutodiscoverUrl("myAcount@gmail.com");
//----------------------------------------------------------------------
var app = new Appointment(service)
{
Subject = "Meet George",
Body = "You need to meet George",
Location = "1st Floor Boardroom",
Start = DateTime.Now.AddHours(2),
End = DateTime.Now.AddHours(3),
IsReminderSet = true,
ReminderMinutesBeforeStart = 15
};
app.RequiredAttendees.Add(new Attendee("any@gmail.com"));
app.Save(SendInvitationsMode.SendToAllAndSaveCopy);
}
最佳答案
一些可能的答案。
关于c# - EWS Exchange Web 服务 API AutodiscoverUrl 异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18954818/
在分析一个程序时,我看到了一个名为 AutoDiscoverURL 的函数!!我已经用谷歌搜索了,不幸的是无法弄清楚。 最佳答案 Autodiscover 属性将仅使用传入的电子邮件地址计算出服务 U
我正在使用此代码在 winforms 应用程序中通过 Outlook 发送电子邮件。 _exchangeService = new ExchangeService(ExchangeVersion.Ex
我正在使用 AutodiscoverUrl 连接到 exchange 服务器,但连接时间很长......有什么方法可以减少消耗的时间...... 最佳答案 您是否尝试过指定您的 URL 而不是使用自动
我在尝试创建约会时遇到错误: The expected XML node type was XmlDeclaration, but the actual type is Element. 当我调用 A
我正在使用 Java Exchange Web 服务 API 连接到 office365.com 上的邮箱 以下是我编写的用于通过自动发现进行身份验证并建立连接的代码片段: ExchangeServi
我是一名优秀的程序员,十分优秀!