473,804 Members | 3,705 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Applica tion

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 3056
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******** ********@TK2MSF TNGP15.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.Applica tion

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
1500
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 Outlook couldn't connect with the outgoing server. No account settings have changed (I've checked) and I can still telnet to the SMTP server (but not through port 25)and send mail through a web-based university system. I do not have any Norton...
3
1944
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 to Office 2003, and the annoying security prompts for Outlook automation are not wanted by the customer. So, I started looking at CDO mail. Lots of stuff there, but nothing works - in Access 2000. (Known bug, alternative is to use outlook...
0
2034
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 compiling the code. the problem arises when I try to install the service using installutil. The error message I get is the following
3
4560
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 windows application it worked fine, however I need to use a service as I don't want to rely on a user being logged in. The errors I get are: Index #:System.Web.HttpException: Could not access 'CDO.Message' object. --->...
1
436
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 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.
26
4507
by: Tom Becker | last post by:
Is there a way, from Access, to programmatically click the Send and Receive button in Outlook?
8
1539
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 thinking of? Any given points of direction would be greatly appreciated. Regards
2
2087
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 System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Web.Mail.CdoSysHelper.Send(MailMessage message) at System.Web.Mail.SmtpMail.Send(MailMessage message) It works fine on my development box, but not my other box. Development box is...
2
1819
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) that is part of the total corporate network. I also have a private network that has my webserver (192.168.100.184) on it. The 10.5.42.0 subnet and the private network are connected to a PIX firewall. To access the webserver, users on any corp...
0
9576
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10568
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10323
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10074
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7613
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5516
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3813
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2988
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.