We just started getting this error message in our application today (stack
trace below). From the OutOfMemoryExce ption, I'm guessing it could be a
memory leak. I'm making sure I'm closing all my connections in the finally
block but I'm not sure what I should be doing.
As far as the "Unable to serialize the session state" error, this app has
been running for days and this is the first I've seen this one as well.
Any thoughts would be greatly appreciated...
[OutOfMemoryExce ption: Exception of type System.OutOfMem oryException was
thrown.]
[HttpException (0x80004005): 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'.]
System.Web.Util .AltSerializati on.WriteValueTo Stream(Object value,
BinaryWriter writer) +1710
System.Web.Sess ionState.Sessio nDictionary.Ser ialize(BinaryWr iter writer)
+148
System.Web.Sess ionState.StateC lientManager.Se rialize(Session StateItem
item, Stream stream) +146
System.Web.Sess ionState.SqlSta teClientManager .System.Web.Ses sionState.IStat eClientManager. Set(String id, SessionStateIte m item, Boolean inStorage) +126
System.Web.Sess ionState.Sessio nStateModule.On ReleaseState(Ob ject source,
EventArgs eventArgs) +465
System.Web.Sync EventExecutionS tep.System.Web. HttpApplication +IExecutionStep .Execute() +60
System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean&
completedSynchr onously) +87 2 3923
the outofmemory error is misleading. the real problem is trying to store an
object in a sqlserver session manager that cannot be serialized. not all
..net object can be serialized, check that what you store in session can.
-- bruce (sqlwork.com)
"Dave" <Da**@discussio ns.microsoft.co m> wrote in message
news:EE******** *************** ***********@mic rosoft.com... We just started getting this error message in our application today (stack trace below). From the OutOfMemoryExce ption, I'm guessing it could be a memory leak. I'm making sure I'm closing all my connections in the finally block but I'm not sure what I should be doing.
As far as the "Unable to serialize the session state" error, this app has been running for days and this is the first I've seen this one as well.
Any thoughts would be greatly appreciated...
[OutOfMemoryExce ption: Exception of type System.OutOfMem oryException was thrown.]
[HttpException (0x80004005): 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'.] System.Web.Util .AltSerializati on.WriteValueTo Stream(Object value, BinaryWriter writer) +1710 System.Web.Sess ionState.Sessio nDictionary.Ser ialize(BinaryWr iter writer) +148 System.Web.Sess ionState.StateC lientManager.Se rialize(Session StateItem item, Stream stream) +146
System.Web.Sess ionState.SqlSta teClientManager .System.Web.Ses sionState.IStat eClientManager. Set(String id, SessionStateIte m item, Boolean inStorage) +126 System.Web.Sess ionState.Sessio nStateModule.On ReleaseState(Ob ject source, EventArgs eventArgs) +465
System.Web.Sync EventExecutionS tep.System.Web. HttpApplication +IExecutionStep .Execute() +60 System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean& completedSynchr onously) +87
Hello,
I use an ASP.Net app on WIndows 2000 with SQL Server 2000 to store
persistant sessions.
I have the same problem but it does not always happen. I can be doing a
particular task one day without errors but on another day I will get the
error (Doing the exact same thing).
The only thing I've noticed is the Total Server Memory under Performance
Monitor rises and rises over a span of a couple of days. Once it exceeds 40
out of 100 it is likely I will come across this problem.
Please can anyone help?
Rich. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Fletch |
last post by:
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...
|
by: js |
last post by:
Does anybody knows how to solve the problem? I added
attribute to the following classes in
Microsoft.Practices.EnterpriseLibrary.Data namespace, but I still get
the error. Thanks.
Database.cs
DatabaseFactory.cs
DatabaseProviderFactory.cs
DBCommandWrapper.cs
|
by: Tim |
last post by:
Could anyone tell me what this means and how do I correct it. Any
suggestions? Thanks!
Tim Richardson
IT Developer and Consultant
www.paladin3d.com
Unable to serialize the session state. In 'StateServer' and 'SQLServer'
mode, ASP.NET will serialize the session state objects, and as a result
non-serializable objects or MarshalByRef...
|
by: tshad |
last post by:
I had asked about this before, but have been unable to solve the problem.
Could this be a problem with Web Services?
I have 4 web services that I reference in this object. There is only one
class.
I have an object I am unable to put in my session. I have others that have
no problem. The difference is the the one I am having problems...
|
by: Nachi |
last post by:
I have installed SQL Server 2000 with VS 2005 - did not install
SqlExpress\Sql 2005. I have a remote Sql Server Instance locally. The
normal application connectes to this Sql Server. When I run Asp.Net
Configuration from VS 2005 it gives this error.
I have removed 'LocalSqlServer' in machine.Config and added in
web.config as following.
| |
by: =?Utf-8?B?UGlnZ3k=?= |
last post by:
Hi to all,
I am getting this System.OutOfMemoryException calling the
Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(<stream>,<Obj>) method.
The type of <streamis IO.MemoryStream
=====Exception:
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException'
was
thrown.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
| |
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |