Showing posts with label unable. Show all posts
Showing posts with label unable. Show all posts

Monday, March 26, 2012

System.Net.Mail Error: Unable to read data from the transport connection: net_io_connectio

I've looked everywhere for an answer to this, but only a few people
seem to have encountered it.

The code is straightforward:

MailMessage mail = new MailMessage(from, to, subject, body);
SmtpClient client = new SmtpClient("localhost");
client.Send (mail);

The code works fine on my development machine (XP Pro). When moved to
staging (2003 Server), I get the "connection closed" error. I've
confirmed the following:

-- "localhost" resolves to 127.0.0.1 (also tried using the loopback
address with the same error)
-- SMTP service is running on port 25
-- service is configured to relay mail
-- another app (Community Server) is using the service to send email
without any problems.

I'm at wit's end

TIAAs usual, this problem was resolved out not long after posting this
message. The problem was how the SMTP service was set up.
Specifically, the service has been bound to a specific IP address (not
the webserver's; see the "IP Address" dropdown in the "General" tab).
Once this was set to "(All Unassigned)". Everything worked fine.
Hopefully this message will save someone the hours of aggravation I
endured.

nate.strules@.gmail.com wrote:

Quote:

Originally Posted by

I've looked everywhere for an answer to this, but only a few people
seem to have encountered it.
>
The code is straightforward:
>
MailMessage mail = new MailMessage(from, to, subject, body);
SmtpClient client = new SmtpClient("localhost");
client.Send (mail);
>
The code works fine on my development machine (XP Pro). When moved to
staging (2003 Server), I get the "connection closed" error. I've
confirmed the following:
>
-- "localhost" resolves to 127.0.0.1 (also tried using the loopback
address with the same error)
-- SMTP service is running on port 25
-- service is configured to relay mail
-- another app (Community Server) is using the service to send email
without any problems.
>
I'm at wit's end
>
TIA

Thursday, March 22, 2012

System.OutofMemoryException - Session

Hi

I have an application running on a cluster that's constantly throwing an OutOfMemoryException with the following message
"Unable to serialize the session state. Please note that non-serializable objects or MarshalByRef objects are not permitted when session state mode is 'StateServer' or 'SQLServer'.

In this instance, session state mode is set to 'StateServer' and the only object being stored in the session is a dataset (which is serializable)..

Anyone have any ideas

Thanks!for starters, what does your dataset contain?
any funky stuff in the dataset or just basic types?

i'm puzzled that an outofmemoryexception would contain a serialization
string

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/27cok
"Fletch" <anonymous@.discussions.microsoft.com> wrote in message
news:0F2E1CFD-71B2-41BA-9874-1AD07F3BDB5A@.microsoft.com...
> Hi,
> I have an application running on a cluster that's constantly throwing an
OutOfMemoryException with the following message:
> "Unable to serialize the session state. Please note that non-serializable
objects or MarshalByRef objects are not permitted when session state mode is
'StateServer' or 'SQLServer'."
> In this instance, session state mode is set to 'StateServer' and the only
object being stored in the session is a dataset (which is serializable)..
> Anyone have any ideas?
> Thanks!
for starters, what does your dataset contain?
any funky stuff in the dataset or just basic types?

i'm puzzled that an outofmemoryexception would contain a serialization
string

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/27cok
"Fletch" <anonymous@.discussions.microsoft.com> wrote in message
news:0F2E1CFD-71B2-41BA-9874-1AD07F3BDB5A@.microsoft.com...
> Hi,
> I have an application running on a cluster that's constantly throwing an
OutOfMemoryException with the following message:
> "Unable to serialize the session state. Please note that non-serializable
objects or MarshalByRef objects are not permitted when session state mode is
'StateServer' or 'SQLServer'."
> In this instance, session state mode is set to 'StateServer' and the only
object being stored in the session is a dataset (which is serializable)..
> Anyone have any ideas?
> Thanks!

System.OutofMemoryException - Session

Hi

I have an application running on a cluster that's constantly throwing an OutOfMemoryException with the following message
"Unable to serialize the session state. Please note that non-serializable objects or MarshalByRef objects are not permitted when session state mode is 'StateServer' or 'SQLServer'.

In this instance, session state mode is set to 'StateServer' and the only object being stored in the session is a dataset (which is serializable)..

Anyone have any ideas

Thanks!for starters, what does your dataset contain?
any funky stuff in the dataset or just basic types?

i'm puzzled that an outofmemoryexception would contain a serialization
string

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/27cok
"Fletch" <anonymous@.discussions.microsoft.com> wrote in message
news:0F2E1CFD-71B2-41BA-9874-1AD07F3BDB5A@.microsoft.com...
> Hi,
> I have an application running on a cluster that's constantly throwing an
OutOfMemoryException with the following message:
> "Unable to serialize the session state. Please note that non-serializable
objects or MarshalByRef objects are not permitted when session state mode is
'StateServer' or 'SQLServer'."
> In this instance, session state mode is set to 'StateServer' and the only
object being stored in the session is a dataset (which is serializable)..
> Anyone have any ideas?
> Thanks!

System.OutofMemoryException - Session

Hi

I have an application running on a cluster that's constantly throwing an OutOfMemoryException with the following message
"Unable to serialize the session state. Please note that non-serializable objects or MarshalByRef objects are not permitted when session state mode is 'StateServer' or 'SQLServer'.

In this instance, session state mode is set to 'StateServer' and the only object being stored in the session is a dataset (which is serializable)..

Anyone have any ideas

Thanks!for starters, what does your dataset contain?
any funky stuff in the dataset or just basic types?

i'm puzzled that an outofmemoryexception would contain a serialization
string

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/27cok
"Fletch" <anonymous@.discussions.microsoft.com> wrote in message
news:0F2E1CFD-71B2-41BA-9874-1AD07F3BDB5A@.microsoft.com...
> Hi,
> I have an application running on a cluster that's constantly throwing an
OutOfMemoryException with the following message:
> "Unable to serialize the session state. Please note that non-serializable
objects or MarshalByRef objects are not permitted when session state mode is
'StateServer' or 'SQLServer'."
> In this instance, session state mode is set to 'StateServer' and the only
object being stored in the session is a dataset (which is serializable)..
> Anyone have any ideas?
> Thanks!