473,473 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problem with email via asp.net console application (Could not access 'CDO.Message')

I created a console application that sends emails using smtp.
This works fine on my local machine but when I run it on our server, it
generates an error that says

==================================================
Unhandled Exception: System.Web.HttpException: Could not access
'CDO.Message' ob

ject. ---> System.Reflection.TargetInvocationException: Exception has
been throw

n by the target of an invocation. --->
System.Runtime.InteropServices.COMExcepti

on (0x80040220): The "SendUsing" configuration value is invalid.

================================================== =

That is very puzzing to me since we have many webbased applications
runing on the same server and none of them have problem sending emails
using smtp.
Any ideas??

Thanks all

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #1
1 1219
you have the smtp server wrong in the code.
place this in the config file so it can easily be changed.

or you might have to change the smart host setting in IIS.

cheers

martin
"TaeHo Yoo" <yo******@yahoo.com> wrote in message
news:uH*************@TK2MSFTNGP10.phx.gbl...
I created a console application that sends emails using smtp.
This works fine on my local machine but when I run it on our server, it
generates an error that says

==================================================
Unhandled Exception: System.Web.HttpException: Could not access
'CDO.Message' ob

ject. ---> System.Reflection.TargetInvocationException: Exception has
been throw

n by the target of an invocation. --->
System.Runtime.InteropServices.COMExcepti

on (0x80040220): The "SendUsing" configuration value is invalid.

================================================== =

That is very puzzing to me since we have many webbased applications
runing on the same server and none of them have problem sending emails
using smtp.
Any ideas??

Thanks all

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #2

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

Similar topics

1
by: JSzucs | last post by:
I wrote a little code snipet in Asp.Net to send a default message to my outlook email address. That works fine, since the SMTP virtual server default domain is same domain as my outlook mail...
1
by: TaeHo Yoo | last post by:
I created a console application that sends emails using smtp. This works fine on my local machine but when I run it on our server, it generates an error that says ...
1
by: JSzucs | last post by:
I wrote a little code snipet in Asp.Net to send a default message to my outlook email address. That works fine, since the SMTP virtual server default domain is same domain as my outlook mail...
4
by: MMAS | last post by:
I've got my .net application set up to use gmail as a mail server (see code below). Everything works quite well, actually, EXCEPT for one particular email account. I've created an "admin" account...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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...

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.