locked
Event code: 3005 Event message: An unhandled exception has occurred. RRS feed

  • Question

  • User-809140583 posted

    Hi,

    I have a problem on my window 7, 64 bit, IIS 7.5.  We run a web application by  using ASP.NET 4.0.30319.

    I can run it without issues on Window Sever 2003,window xp. But on window 7 64 bit iis 7.5, a program which have a lots of function for updating so many tables, has an error. The error is as below:

    Event code: 3005

    Event message: An unhandled exception has occurred.

    Event time: 19/3/2015 11:03:37 AM

    Event time (UTC): 19/3/2015 3:03:37 AM

    Event ID: 40f2ea08ec7946a7a44ac74c4572548e

    Event sequence: 37

    Event occurrence: 1

    Event detail code: 0

    Application information:

        Application domain: /LM/W3SVC/1/ROOT-5-130712077580651738

        Trust level: Full

        Application Virtual Path: /

        Application Path: G:\ACCMAN _NEWMENU\ACCMAN\

        Machine name: NAING-HP

    Process information:

        Process ID: 2924

        Process name: w3wp.exe

        Account name: IIS APPPOOL\ACCMAN

    Exception information:

        Exception type: InsufficientExecutionStackException

        Exception message: Insufficient stack to continue executing the program safely. This can happen from having too many functions on the call stack or function on the stack using too much stack space.

       at System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack()

       at System.Web.UI.Control.FindControl(String id, Int32 pathOffset)

       at UpdateToAcc.UpdateMasterFiles() in G:\ACCMAN _NEWMENU\ACCMAN\UpdateToAcc.aspx.vb:line 291

       at UpdateToAcc.Btn_Post_Click(Object sender, EventArgs e) in G:\ACCMAN _NEWMENU\ACCMAN\UpdateToAcc.aspx.vb:line 15284

       at System.EventHandler.Invoke(Object sender, EventArgs e)

       at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)

       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    Request information:

        Request URL: http://localhost/UpdateToAcc.aspx

        Request path: /UpdateToAcc.aspx

        User host address: ::1

        User: 

        Is authenticated: False

        Authentication Type: 

        Thread account name: IIS APPPOOL\ACCMAN

    Thread information:

        Thread ID: 48

        Thread account name: IIS APPPOOL\ACCMAN

        Is impersonating: False

        Stack trace:    at System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack()

       at System.Web.UI.Control.FindControl(String id, Int32 pathOffset)

       at UpdateToAcc.UpdateMasterFiles() in G:\ACCMAN _NEWMENU\ACCMAN\UpdateToAcc.aspx.vb:line 291

       at UpdateToAcc.Btn_Post_Click(Object sender, EventArgs e) in G:\ACCMAN _NEWMENU\ACCMAN\UpdateToAcc.aspx.vb:line 15284

       at System.EventHandler.Invoke(Object sender, EventArgs e)

       at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)

       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    Custom event details:

    Thursday, March 19, 2015 12:22 AM

Answers

  • User1183424175 posted

    Hi,

    Maybe it is the difference between IIS 6 on windows server 2003 and iis 7.5 on windows 7. In IIS 6, if the Microsoft ASP.NET Worker Process (ASPNet_wp.exe) creates a thread, the maximum stack size of the thread is 1 MB.

    But in Windows Server 2008 and higher, the maximum stack size of a thread running on 32-bit version of IIS is 256 KB, and on an x64 server is 512 KB.

    So you can try using IIS 7.5 classic mode instead of intergrated mode or increasing the stack size.

    For more information, please refer to the document:

    http://blogs.msdn.com/b/tom/archive/2008/03/31/stack-sizes-in-iis-affects-asp-net.aspx

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Thursday, March 19, 2015 10:21 PM

All replies

  • User1183424175 posted

    Hi,

    Maybe it is the difference between IIS 6 on windows server 2003 and iis 7.5 on windows 7. In IIS 6, if the Microsoft ASP.NET Worker Process (ASPNet_wp.exe) creates a thread, the maximum stack size of the thread is 1 MB.

    But in Windows Server 2008 and higher, the maximum stack size of a thread running on 32-bit version of IIS is 256 KB, and on an x64 server is 512 KB.

    So you can try using IIS 7.5 classic mode instead of intergrated mode or increasing the stack size.

    For more information, please refer to the document:

    http://blogs.msdn.com/b/tom/archive/2008/03/31/stack-sizes-in-iis-affects-asp-net.aspx

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Thursday, March 19, 2015 10:21 PM
  • User-809140583 posted

    I created my own thread and set maxStackSize as 4194304. 

    It worked.Thanks a lot.

    Monday, March 23, 2015 2:15 AM