Welcome Guest Search | Active Topics | Members | Log In | Register

System OutofMemory Exception!! Options · View
Vai2000
Posted: Friday, October 05, 2007 4:50:14 AM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 05/10/2007 04:50:14
Date: Fri, 5 Oct 2007 08:50:14 -0400

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
Posted: Friday, October 05, 2007 5:32:39 PM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 05/10/2007 17:32:39
Date: Fri, 05 Oct 2007 15:32:39 +0200

Vai2000 wrote:
> 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
>

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?

--
Göran Andersson
_____
http://www.guffa.com
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.1 (NET v2.0) - 9/10/2007
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.
This page was generated in 0.037 seconds.