System OutofMemory Exception!!

V

Vai2000

Unbelievable! I have a webservice which tries to write a file to temp
directory ,yes the svc have write access, and I getThe 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 90MBMy 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
 
?

=?ISO-8859-1?Q?G=F6ran_Andersson?=

Vai2000 said:
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?
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

Vai2000 said:
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 :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top