Increase IIS ASP.NET 3.5 Stack Size

I understand that the default maximum stack size on ASP.NET was reduced to 256K instead of 1MB (see http://support.microsoft.com/kb/932909 ), how can I return it to 1 MB?

+4
source share
2 answers

You can use editbin as described in this article .

+5
source

Another solution might be to create an explicit new thread to perform operations in which you receive an 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) { ... } } 

Hi

Massimo

+5
source

Source: https://habr.com/ru/post/1302140/


All Articles