Hello,
We use a third party reporting system (Actuate) which provides soap services
via WSDL.
My web application was initially built in Visual Studio 2003 using .NET 1.1.
I was able to download huge files, i.e., over 100MB with no problems.
Actuate also has a utility (c# win app) that has no issues with a .net 1.1
version.
Our dev house has upgraded to VS2005 and we have recompiled everything which
is now under .NET 2.0. Now my web app may be able to download a file over
100MB once and then report a System.OutOfMemoryException. This also occurs
in my DLLs and the Actuate utility that were all compiled with VS2005.
Is there a bug in the .NET Framework 2.0 somewhere in the memory allocation
or stream allocation process? The exception thread below shows at what
point the process is dying. Is there anyone that has any ideas around this?
Thanks in advance.
Again, none of the code has been changed, we just recompiled in vs2005 and
now are under .net 2.0 rather than 1.1. That's the only change.
************************************************** ***
at System.String.GetStringForStringBuilder(String value, Int32
startIndex, Int32 length, Int32 capacity)
at System.Text.StringBuilder.set_Capacity(Int32 value)
at System.Xml.BufferBuilder.ToString()
at System.Xml.XmlTextReaderImpl.ParseText()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlTextReaderImpl.InitReadElementConten tAsBinary()
at System.Xml.XmlTextReaderImpl.ReadElementContentAsB ase64(Byte[] buffer,
Int32 index, Int32 count)
at System.Xml.XmlTextReader.ReadElementContentAsBase6 4(Byte[] buffer,
Int32 index, Int32 count)
at System.Xml.Serialization.XmlSerializationReader.Re adByteArray(Boolean
isBase64)
at
System.Xml.Serialization.XmlSerializationReader.To ByteArrayBase64(Boolean
isNull)
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlS erializationReaderActuateAPI.Read14_Attachment(Boo lean
isNullable, Boolean checkType)
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlS erializationReaderActuateAPI.Read167_DownloadFileR esponse(Boolean
isNullable, Boolean checkType)
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlS erializationReaderActuateAPI.Read517_downloadFileR esponse()
at
Microsoft.Xml.Serialization.GeneratedAssembly.Arra yOfObjectSerializer165.Deserialize(XmlSerializatio nReader
reader)
at System.Xml.Serialization.XmlSerializer.Deserialize (XmlReader
xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize (XmlReader
xmlReader, String encodingStyle)
at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters)
at ActuateAPI.downloadFile(DownloadFile DownloadFile1)
at CAcApi.DownloadFile(String sFileName)