Advertisement

09.18.2007 at 12:02PM PDT, ID: 22836929
[x]
Attachment Details

Access Exchange Public Folder Items in Windows Service

Asked by mcorrente in .NET, Exchange Email Server

Tags: exchange, public, folder

I need to write a windows service that cycles through email messages in an Exchange public folder.  I've  been unsuccessful with CDO trying to connect to a MAPI.session in a service.  The setup I have works fine in a windows form application, but not in a service.

This is what works in a form:
dim mapiSession as new mapi.session
strExchangeServer = "mail.domain.local"
strUserAlias = "myusername"
strProfileInfo = strExchangeServer + vblf + strUserAlias
mapiSession.Logon ("","",False,True,0,True,strProfileInfo)

Works perfectly except for the obvious fact that it needs user interaction.  This program needs to be installed  on a server and started automatically and run regardless of whether someone is logged on or not.  The error I get when I try to run this in a service is [Collaboration data Objects -[E_FAIL(80004005)]]

I don't care about using CDO - in fact, I'd rather not.  I can change settings on the Exchange server to make whatever needs to be accessible accessible.  I just need someone to give me a way to connect to the public folder and access the messages in a windows service.  Anyway that gets done is good with me.Start Free Trial
[+][-]09.18.2007 at 01:32PM PDT, ID: 19916347

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.18.2007 at 01:39PM PDT, ID: 19916407

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.19.2007 at 06:13PM PDT, ID: 19925602

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.20.2007 at 07:34AM PDT, ID: 19928634

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.22.2007 at 08:09AM PDT, ID: 19941692

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.22.2007 at 08:16AM PDT, ID: 19941704

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .NET, Exchange Email Server
Tags: exchange, public, folder
Sign Up Now!
Solution Provided By: surajguptha
Participating Experts: 1
Solution Grade: A
 
 
[+][-]10.01.2007 at 10:47AM PDT, ID: 19992441

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_1_20070628