Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / December 2007

Tip: Looking for answers? Try searching our database.

System.OutOfMemoryException with .NET 2.0 but NOT .NET 1.1

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
AY - 04 Jan 2007 19:09 GMT
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.InitReadElementContentAsBinary()
  at System.Xml.XmlTextReaderImpl.ReadElementContentAsBase64(Byte[] buffer,
Int32 index, Int32 count)
  at System.Xml.XmlTextReader.ReadElementContentAsBase64(Byte[] buffer,
Int32 index, Int32 count)
  at System.Xml.Serialization.XmlSerializationReader.ReadByteArray(Boolean
isBase64)
  at
System.Xml.Serialization.XmlSerializationReader.ToByteArrayBase64(Boolean
isNull)
  at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderActuateAPI.Read14_Attachment(Boolean
isNullable, Boolean checkType)
  at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderActuateAPI.Read167_DownloadFileResponse(Boolean
isNullable, Boolean checkType)
  at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderActuateAPI.Read517_downloadFileResponse()
  at
Microsoft.Xml.Serialization.GeneratedAssembly.ArrayOfObjectSerializer165.Deserialize(XmlSerializationReader
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.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall)
  at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
  at ActuateAPI.downloadFile(DownloadFile DownloadFile1)
  at CAcApi.DownloadFile(String sFileName)
AY - 08 Jan 2007 21:43 GMT
Anyone at Microsoft have any input on this one?

> Hello,
>
[quoted text clipped - 61 lines]
>   at ActuateAPI.downloadFile(DownloadFile DownloadFile1)
>   at CAcApi.DownloadFile(String sFileName)
jamesw - 11 Dec 2007 14:20 GMT
hello,

did you find a answer to this?
Im having problems with a out of memory exception on System.String.
GetStringForStringBuilder with .NET 2.0 and not 1.1

thanks

>Hello,
>
[quoted text clipped - 60 lines]
>   at ActuateAPI.downloadFile(DownloadFile DownloadFile1)
>   at CAcApi.DownloadFile(String sFileName)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.