views:

245

answers:

2

Hi,

I undertand that the stack size on ASP.NET was decreased to 256K instead of 1MB, how can I get it back to 1MB.

Please help.

Thanks.

+2  A: 

You can use editbin, as described in this article.

Oded
+1  A: 

Another solution could be that of creating an explicit new thread to perform the operations where you're getting a stack overflow error

  Thread t = new Thread(Run, 4194304); // 4M of stack size
  t.Start();
  t.Join();
  if (loadException != null) throw loadException;

  void Run()
        {
            try
            {
              // Operation causing stack overflow
            }
            catch (Exception e)
            {
              ...
            }
        }

Regards

Massimo

massimogentilini
I'm calling the an external unmanged dll, and still getting a stackoverflow..., maybe when u call an unmanged dll, the stack size goes back to 256k?
Haim Bender
nice answer....
Haim Bender