473,386 Members | 1,801 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,386 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 3011
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.