web mail error in aspx application

R

Rea Peleg

Hi all
I am using iis smtp service in an aspx application to send email
notifications.
The same code runs nicely from a test console application, but later fails
in the web form.

The following error occurs:

"Could not access 'CDO.Message' object.
Exception has been thrown by the target of an invocation. The network path
was not found."

I'm not sure what is the target of invocation?

I can think of 3 possebilities:
1)The smtp server
2)The CDO.dll
3)an attachment from network location

If it is the smtp server than why there is no problem locationg it from with
in the console
project?

I also had a problem to add an attachment which is retrieved from client's
machine.
More specifically i had a line of code which tested its existance there:
File.Exist("path to attachment") and it failed untill
i impersonated the iis service.

Can there be still a problem attaching to this file on sending the message??

Can this be related to 'trust' between my application and the attachment or
between
my application and the CDO dll??

Thanks alot for your attention
Rea
 
C

Curt_C [MVP]

permissions.
The user that IIS/ASP.NET is running under doesn't have access to either the
CDO object or the folders for the SMTP to drop into.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top