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 / Languages / C# / October 2007

Tip: Looking for answers? Try searching our database.

System OutofMemory Exception!!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vai2000 - 05 Oct 2007 13:50 GMT
Unbelievable! I have a webservice which tries to write a file to temp
directory ,yes the svc have write access, and  I get

The following error occurred while processing file: foo.dat Exception of
type 'System.OutOfMemoryException' was thrown.  StackTrace-    at
System.IO.TextWriter.WriteLine(String value)

For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.

The filesize was 90MB

My server is quite beefy!!
using .net 2.0 and simple streamwrite.write() method
yes I have the <httpRuntime maxRequestLength="1048576"
executionTimeout="900"> in web.config
Göran Andersson - 05 Oct 2007 14:32 GMT
> Unbelievable! I have a webservice which tries to write a file to temp
> directory ,yes the svc have write access, and  I get
[quoted text clipped - 10 lines]
> yes I have the <httpRuntime maxRequestLength="1048576"
> executionTimeout="900"> in web.config

That error almost only occurs if you are running out of windows
resources. Are you doing something silly like opening the same file
100000 times without ever closing it? What does your code look like?

Signature

Göran Andersson
_____
http://www.guffa.com

Peter Bromberg [C# MVP] - 05 Oct 2007 14:47 GMT
Need to see more code on this. Why are you using WriteLine? Aren't you trying
to write the entire file? Is the file uploaded to the webservice? what
mechanism are you using to do this? And so on.
-- Peter
Recursion: see Recursion
site:  http://www.eggheadcafe.com
unBlog:  http://petesbloggerama.blogspot.com
BlogMetaFinder:    http://www.blogmetafinder.com

> Unbelievable! I have a webservice which tries to write a file to temp
> directory ,yes the svc have write access, and  I get
[quoted text clipped - 12 lines]
> yes I have the <httpRuntime maxRequestLength="1048576"
> executionTimeout="900"> in web.config
Ignacio Machin ( .NET/ C# MVP ) - 05 Oct 2007 21:10 GMT
Hi,

> Unbelievable! I have a webservice which tries to write a file to temp
> directory ,yes the svc have write access, and  I get
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> The following error occurred while processing file: foo.dat Exception of
> type 'System.OutOfMemoryException' was thrown.  StackTrace-    at
> System.IO.TextWriter.WriteLine(String value)

Code please :)

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.