473,322 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Problem: Using Windows Service to access Outlook to send mail

I am using a windows service which accesses Microsoft Outlook. Outlook is
supposed to send an email. This works fine when not run in a windows
service.
I am running the service under my user domain logon.
I am using VB.net and using redemption.dll to bypass the security patch.
This is the line of code that causes the event error
Dim olApp As New Outlook.Application

When I try and use a service the following error occurs.

The description for Event ID (2001) is Source (Microsoft Office 11) cannot
be found. The local computer may not have the necessary registry
information or message DLL file to display messages from a remote computer.
You may be able to use the /AUXSOURCE=flag to retrieve this description; see
Help and Support for details. The following information is part of the
event: Microsoft Office Outlook,.
Oct 27 '05 #1
1 3002
If you just want to send an email from a service , automating outlook is not
the best way todo it.

2 other options are :

WEBDAV to send the email from the exchange server
SMTP

They are others options.

If you dont need to see the item in someones sents items, then SMTP is good,
if you need to see the email in the sent items, WEBDAV is good.

Steve

"Paul" <pa***************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
I am using a windows service which accesses Microsoft Outlook. Outlook is
supposed to send an email. This works fine when not run in a windows
service.
I am running the service under my user domain logon.
I am using VB.net and using redemption.dll to bypass the security patch.
This is the line of code that causes the event error
Dim olApp As New Outlook.Application

When I try and use a service the following error occurs.

The description for Event ID (2001) is Source (Microsoft Office 11) cannot
be found. The local computer may not have the necessary registry
information or message DLL file to display messages from a remote
computer. You may be able to use the /AUXSOURCE=flag to retrieve this
description; see Help and Support for details. The following information
is part of the event: Microsoft Office Outlook,.

Oct 28 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Corey | last post by:
I'm running Windows/Outlook XP with mail routed through POP3/SMTP university servers. Abruptly, I am no longer able to send mail, though receiving works fine. I get an error message saying that...
3
by: Leah | last post by:
I'm updating an app currently in Access 2000, which uses Outlook 2000 (sr1a) to send emails behind the scenes. Several issues have come up since I've started work on this. This office is moving...
0
by: W Akthar | last post by:
Hi All, I have created a simple Windows Service which needs to be able to send appointments to Outlook. I have no problem makeing a reference to Microsoft Outlook 11.0 Object Library and...
3
by: Gerard | last post by:
Hello I have created a windows service to monitor a database, it starts some checks when a timer elapses. The checks send emails depending on their findings. My issue is that when I created a...
1
by: Paul | last post by:
I am using a windows service which accesses Microsoft Outlook. Outlook is supposed to send an email. This works fine when not run in a windows service. I am running the service under my user...
26
by: Tom Becker | last post by:
Is there a way, from Access, to programmatically click the Send and Receive button in Outlook?
8
by: Visual Systems AB \(Martin Arvidsson\) | last post by:
Hi! I am trying to send a Mail using SmtpClient on my developer computer. Is it not possible? Do i have to use it on a computer with IIS installed? If it is possible, what should i be...
2
by: Goran Djuranovic | last post by:
Hi all, When sending mail from within a windows service I get this exception: "The specified procedure could not be found" at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) at...
2
by: softbreeze | last post by:
Operating systems: Windows 2003 Enterprise ASP.Net 2.0, IIS 6.0, *** SMTP is not installed *** I have a corporate network that has an SMTP server (10.254.3.30) on it. I have a subnet (10.5.42.0)...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.