How to debug: w3wp.exe process was terminated due to a stack overflow (works on one machine but not another)

后端 未结 5 463
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-04 11:37

The problem
I have an ASP.NET 4.0 application that crashes with a stack overflow on one computer, but not another. It runs fine on my development enviro

5条回答
  •  孤城傲影
    2020-12-04 12:08

    Two things I would try before analysing any memory dumps.

    1. Install the remote debugging tool on the web server and try debugging that way. You can find this tool on the Visual Studio install DVD.
    2. Install Elmah. Elmah can be added to a running ASP.NET application for logging and debugging. I would probably go with this option first and it's the least painful approach. http://code.google.com/p/elmah/

提交回复
热议问题