2 Replies Latest reply on Jun 22, 2009 6:13 AM by pierattc

    Out of Memory Exception on ASP.NET

    MWilson1973 Rookie

      Hi

      Can anyone shed some light on a problem we are having re: ASP.net.

       

      Last week we started getting the following error message every couple of minutes. At first we thought we needed to upgrade ASP.Net to 2.0.50727.0 but even when we did that it still kept occuring.

       

      Any ideas?

       

      Event code: 3005 Event message: An unhandled exception has occurred. Event time: 22/06/2009 10:00:38 Event time (UTC): 22/06/2009 09:00:38 Event ID: 2c723db460084b59a0780a5997f88d63 Event sequence: 231449 Event occurrence: 910 Event detail code: 0 Application information:     Application domain: /LM/W3SVC/1/Root/Touchpaper.Framework.Web.726-1-128900429359888449     Trust level: Full     Application Virtual Path: /Touchpaper.Framework.Web.726     Application Path: c:\inetpub\wwwroot\Touchpaper.Framework.Web.726\     Machine name: ##########  Process information:     Process ID: 20904     Process name: w3wp.exe     Account name: NT AUTHORITY\NETWORK SERVICE Exception information:     Exception type: OutOfMemoryException     Exception message: Exception of type 'System.OutOfMemoryException' was thrown. Request information:     Request URL: http://localhost/Touchpaper.Framework.Web.726/DataService.asmx     Request path: /Touchpaper.Framework.Web.726/DataService.asmx    User host address: 127.0.0.1    User:      Is authenticated: False     Authentication Type:  .    Thread account name: NT AUTHORITY\NETWORK SERVICE Thread information:     Thread ID: 5     Thread account name: NT AUTHORITY\NETWORK SERVICE     Is impersonating: False     Stack trace:    at System.IO.MemoryStream.set_Capacity(Int32 value)   at System.IO.MemoryStream.EnsureCapacity(Int32 value)   at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)   at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)   at System.IO.StreamWriter.Write(String value)   at System.Xml.XmlTextEncoder.Write(String text)   at System.Xml.XmlTextWriter.WriteString(String text)   at System.Xml.Serialization.XmlSerializationWriter.WriteValue(String value)   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriter1.Write12_SAttValue(String n, String ns, SAttValue o, Boolean isNullable, Boolean needType)   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriter1.Write13_SDataObjectRef(String n, String ns, SDataObjectRef o, Boolean isNullable, Boolean needType)   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriter1.Write12_SAttValue(String n, String ns, SAttValue o, Boolean isNullable, Boolean needType)   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriter1.Write4_SDataObject(String n, String ns, SDataObject o, Boolean isNullable, Boolean needType)   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriter1.Write2_Object(String n, String ns, Object o, Boolean isNullable, Boolean needType)   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriter1.Write5_SDataObjectList(String n, String ns, SDataObjectList o, Boolean isNullable, Boolean needType)   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriter1.Write89_RunPagedQueryResponse(Object[] p)   at Microsoft.Xml.Serialization.GeneratedAssembly.ArrayOfObjectSerializer17.Serialize(Object objectToSerialize, XmlSerializationWriter writer)   at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)   at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle)   at System.Web.Services.Protocols.SoapServerProtocol.WriteReturns(Object[] returnValues, Stream outputStream)   at System.Web.Services.Protocols.WebServiceHandler.WriteReturns(Object[] returnValues)   at System.Web.Services.Protocols.WebServiceHandler.Invoke()   at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()   at System.Web.Services.Protocols.SyncSessionlessHandler.ProcessRequest(HttpContext context)   at System.Web.Script.Services.ScriptHandlerFactory.HandlerWrapper.ProcessRequest(HttpContext context)   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) Custom event details: