I'm trying to send an email thus:
MySmtpClient.Send(MyMailMessage);

But this sentece return me a message error:

Failure sneding Mail-->> System.ObjectDisposedException: Cannot access a closed file at:
System.IO._Error.FileNotOpen()

If somebody can help me:

Thank you

From http://www.developmentnow.com/g/6_2004_10_0_7_0/dotnet-framework.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com

Re: Error sending mail by CT

CT
Thu Oct 20 02:57:55 CDT 2005

I can't say I know this error, but can you possibly show a little more code,
helping us to reproduce the error? In addition, do you get the same error no
matter what you send? Can you send using a different SMTP server on your
network?

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk

"Pablo Corrales" <pcorral@mmrree.gov.ec> wrote in message
news:14878051-844a-4cf8-b102-d471f34dd192@msnews.microsoft.com...
> I'm trying to send an email thus:
> MySmtpClient.Send(MyMailMessage);
>
> But this sentece return me a message error:
>
> Failure sneding Mail-->> System.ObjectDisposedException: Cannot access a
> closed file at:
> System.IO._Error.FileNotOpen()
>
> If somebody can help me:
>
> Thank you
>
> From http://www.developmentnow.com/g/6_2004_10_0_7_0/dotnet-framework.htm
>
> Posted via DevelopmentNow.com Groups
> http://www.developmentnow.com



Re: Error sending mail by Lars

Lars
Thu Oct 20 05:53:38 CDT 2005

Hi Pablo,

the exception says that the object i already disposed.
Looks like that something goes wrong with the internal
stream to the SMTP Server. You should install a tracing
tool (e.g. YATT) and capture the stream on port 25. So will
find out where error occurs.

Cheers
Lars Behrmann

_________________
Nothing is impossible. UML is the key for all your problems.
AODL - Make your .net apps OpenOffice ready
http://aodl.sourceforge.net/


Pablo Corrales schrieb:

> I'm trying to send an email thus:
> MySmtpClient.Send(MyMailMessage);
>
> But this sentece return me a message error:
>
> Failure sneding Mail-->> System.ObjectDisposedException: Cannot access a closed file at:
> System.IO._Error.FileNotOpen()
>
> If somebody can help me:
>
> Thank you
>
> From http://www.developmentnow.com/g/6_2004_10_0_7_0/dotnet-framework.htm
>
> Posted via DevelopmentNow.com Groups
> http://www.developmentnow.com