System OutofMemory Exception!!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vai2000

    #1

    System OutofMemory Exception!!

    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.OutOfMe moryException' was thrown. StackTrace- at
    System.IO.TextW riter.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.wri te() method
    yes I have the <httpRuntime maxRequestLengt h="1048576"
    executionTimeou t="900"in web.config


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

    #2
    Re: System OutofMemory Exception!!

    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.OutOfMe moryException' was thrown. StackTrace- at
    System.IO.TextW riter.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.wri te() method
    yes I have the <httpRuntime maxRequestLengt h="1048576"
    executionTimeou t="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
    _____
    Göran Anderssons privata hemsida.

    Comment

    • =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=

      #3
      RE: System OutofMemory Exception!!

      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



      "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.OutOfMe moryException' was thrown. StackTrace- at
      System.IO.TextW riter.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.wri te() method
      yes I have the <httpRuntime maxRequestLengt h="1048576"
      executionTimeou t="900"in web.config
      >
      >
      >

      Comment

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

        #4
        Re: System OutofMemory Exception!!

        Hi,

        "Vai2000" <nospam@microso ft.comwrote in message
        news:%23GTBX30B IHA.3916@TK2MSF TNGP02.phx.gbl. ..
        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.OutOfMe moryException' was thrown. StackTrace- at
        System.IO.TextW riter.WriteLine (String value)
        Code please :)


        Comment

        Working...