IIS and SMTP - attachments from network resource

This is Interesting: Free IT Magazines  
Home > Archive > IIS and SMTP > August 2004 > attachments from network resource





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author attachments from network resource
Rea Peleg

2004-08-06, 8:48 pm

Hi all
There seem to be a problem when i attempt to add
attachment from the client machine to the mail message sent from the
web aspx server application.
I am using dot net and i expect security issues to block
attempts from aspx code to access the file system on client machine but not
sure how to
over come this.
I suspect security because the same code runs just fine when executed
by a console application.

Here's the error message i get:

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

Have any of you had some expirience in this sort of mission?

TIA
Rea



Ken Schaefer

2004-08-09, 2:48 am

You need to have the user upload the file to the server. Then you add the
attachment from the server's file system

How you upload the file depends. If the clients trust the server, you could
use ActiveX control. If they don't, you will need to use a HTML form.

The problem you are having is that:
a) there may not be any file sharing protocol (eg SMB) that the server can
use to access the client's file share
-and/or-
b) the process identity of the server probably doesn't have permissions to
the client's file system

Cheers
Ken

"Rea Peleg" <reapeleg@barak-online.net> wrote in message
news:%233cTnmBfEHA.708@TK2MSFTNGP09.phx.gbl...
> Hi all
> There seem to be a problem when i attempt to add
> attachment from the client machine to the mail message sent from the
> web aspx server application.
> I am using dot net and i expect security issues to block
> attempts from aspx code to access the file system on client machine but

not
> sure how to
> over come this.
> I suspect security because the same code runs just fine when executed
> by a console application.
>
> Here's the error message i get:
>
> "Could not access 'CDO.Message' object.
> Exception has been thrown by the target of an invocation. The network path
> was not found."
>
> Have any of you had some expirience in this sort of mission?
>
> TIA
> Rea
>
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com