通过Windows计划任务以编程方式访问Microsoft Outlook 2010时遇到问题 [英] Facing issues while accessing Microsoft Outlook 2010 programatically through windows Scheduled Task

查看:135
本文介绍了通过Windows计划任务以编程方式访问Microsoft Outlook 2010时遇到问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Team,

我们要求必须阅读指定发件人发送到所标识的电子邮件帐户的所有电子邮件,并且必须提取和放置该电子邮件中的附件在指定的物理驱动器中。这必须定期发生。

为了达到同样的目的,我们在应用服务器(Windows Server 2008 R2 64位版本)上安装了Microsoft Outlook 2010,并使用Outlook成功将指定的电子邮件帐户配置到映射的Exchange服务器(Exchange Server 2003) 。

后来我们在ASP.Net 3.5版本中开发了一个控制台应用程序,它基本上连接到Outlook,读取指定发件人发送的所有邮件,提取电子邮件中可用的附件并放置它在已识别的物理文件夹结构中,并在执行时作为独立的EXE运行正常,没有任何问题。

后来我们安排了一个任务,这个EXE使用Windows任务计划程序每10分钟自动执行一次并且观察到这个exe是间歇性地成功执行的,并且大多数时候它给出了下面指定的错误。

我们尝试将帐户更改为网络服务,本地服务和服务帐户但未通过。

有些人可以帮助我们问题。

错误详细信息

由于以下错误,检索CLSID为{0006F03A-0000-0000-C000-000000000046}的组件的COM类工厂失败:80010001

事件查看器中记录的错误

日志名称:系统

来源:Microsoft-Windows-DistributedCOM

日期: 12/7/2011 6:11:10 AM

活动编号:10010

任务类别:无

等级:错误

关键词:经典

用户:N / A

电脑:

描述:

服务器{0006F03A-0000-0000-C000-000000000046}未在规定的超时时间内注册DCOM。



日志名称:应用

来源:Windows错误报告

日期: 12/7/2011 6:11:11 AM

活动编号:1001

任务类别:无

等级:信息

关键词:经典

用户:N / A

电脑:

描述:

故障桶,输入0

活动名称:CLR20r3

回复:不可用

驾驶室标识:0



问题签名:

P1:

P2:1.0.0.0

P3:4eda7d95

P4:

P5:1.0.0.0

P6:4eda7d95

P7:1

P8:16

P9:PSZQOADHX1U5ZAHBHOHGHLDGIY4QIXHX

P10:



先谢谢。

Hi Team,
We have a requirement where in all the emails sent by the specified sender’s to the identified email account need to be read and the attachments present in that email’s have to be extracted and placed in the designated Physical drive. This has to happen periodically.
To achieve the same we have installed Microsoft Outlook 2010 on the Application server (Windows Server 2008 R2 64 bit edition) and configured the designated email account to the mapped exchange server (exchange server 2003) successfully using Outlook.
Later we developed a console application in ASP.Net 3.5 version which is basically connecting to the Outlook, read all the mails that has been sent by the specified senders, extract the attachment available in the email and place it in the identified physical folder structure and when executed the EXE as a standalone its functioning fine without any issues.
Later we scheduled a task for this EXE to get auto executed for every 10 mts using Windows Task Scheduler and observed that this exe is being successfully executed intermittently and most of the times it is giving error which is specified below.
We tried with changing the account to "Network Service", "Local Service" and "Service Account" but did not go through.
Can some please help us on this issue.
Error Details
"Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80010001"
Error logged in Event Viewer
Log Name: System
Source: Microsoft-Windows-DistributedCOM
Date: 12/7/2011 6:11:10 AM
Event ID: 10010
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer:
Description:
The server {0006F03A-0000-0000-C000-000000000046} did not register with DCOM within the required timeout.

Log Name: Application
Source: Windows Error Reporting
Date: 12/7/2011 6:11:11 AM
Event ID: 1001
Task Category: None
Level: Information
Keywords: Classic
User: N/A
Computer:
Description:
Fault bucket , type 0
Event Name: CLR20r3
Response: Not available
Cab Id: 0

Problem signature:
P1:
P2: 1.0.0.0
P3: 4eda7d95
P4:
P5: 1.0.0.0
P6: 4eda7d95
P7: 1
P8: 16
P9: PSZQOADHX1U5ZAHBHOHGHLDGIY4QIXHX
P10:

Thanks in Advance.

推荐答案

尝试将控制台应用程序中的代码放入Windows服务中(当然,使用适当的代码来安排要采取的操作),并完全关闭调度程序。这不应该超过一两个小时。
Try putting the code from your console app into a windows service (with approriate code for scheduling the action to be taken, of course), and turn off the scheduler altogether. That shouldn't take you more than an hour or two.


这篇关于通过Windows计划任务以编程方式访问Microsoft Outlook 2010时遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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