Solved

An unhandled win32 exception occurred in w3wp.exe  IIS Worker Process Stopped working

Posted on 2011-03-25
7
7,813 Views
Last Modified: 2012-05-11
Server 2008 Standard x64 SP2
sqlserver 2008 X64
.net framework 3.5
IIS7

server console offten show error. it's a .net website(www.51yunli.com) error.
The error happen several times a day. but sometimes it happend more than 10 times in one hour.

when error happen this website app pool will be rebooted.
mostly w3wp.exe cost about 700M memory, peak memory cost about 1.2G

An unhandled win32 exception occurred in w3wp.exe

eventlog
event 1023,.NET Runtime
NET Runtime version 2.0.50727.4206 -

sometimes it will comes with another error
IIS Worker Process Stopped working

eventlog
event 1000, Application Error

Faulting application w3wp.exe, version 7.0.6002.18005, time stamp 0x49e03238, faulting module ntdll.dll, version 6.0.6002.18327, time stamp 0x4cb74dd3,exception code 0xc0000374, fault offset 0x00000000000aca57, , process id ID 0x92c, application start time 0x01cbe96d30f53290.

Windows Error Reporting

Problem signature:
Problem Event Name:      APPCRASH
Application Name:      w3wp.exe
Application Version:      7.0.6002.18005
Application Timestamp:      49e03238
Fault Module Name:      StackHash_b36f
Fault Module Version:      6.0.6002.18327
Fault Module Timestamp:      4cb74dd3
Exception Code:      c0000374
Exception Offset:      00000000000aca57
OS Version:      6.0.6002.2.2.0.274.10
Locale ID:      2052

other .net(.net+mssql) and PHP website(PHP5.2.5+mysql) on the server works ok

already tried 4 solutions, but it doesn't work.

tried solution1
IIS Manager > DefautAppPool > Advanced Settings
and change:
Process Model > Identity
from:
NetworkService
to:
SpecificUser

tried solution2
recycle time is set to the default every 1740 minutes.
Idle timeout is set to '0'
Disable Overlapped Recycle is set to 'True'

tried solution3
config FastCgi

tried solution4
http://support.microsoft.com/kb/913384 
but it would not install on windows 2008 64bit
0
Comment
Question by:yzhou_cn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
7 Comments
 
LVL 17

Expert Comment

by:Rovastar
ID: 35282783
None of your solutions you stated are tackling the problem.

You have a memory leak in your application you will need to look at the code to remove this leak.

Your 'solutions' you suggested are just messy workarounds that might make the situation a little better but will not tackle the root cause of the problem.

It is difficult to know what to recommend to help here other than debugging your code.
0
 

Author Comment

by:yzhou_cn
ID: 35303788
any advice to debug the memory leak? thanks
0
 

Accepted Solution

by:
yzhou_cn earned 0 total points
ID: 35313520
the issue "An unhandled win32 exception occurred in w3wp.exe" was fixed by following solution.

SqlConnection Do not use global or static. otherwise it will share the connection of different process . the solution is to to use the new connection. and close it  after use.
the issue was fixed  after  using new connection in sqlhelp.cs
0
 

Author Closing Comment

by:yzhou_cn
ID: 35356817
the issue was fixed  after  using new connection in sqlhelp.cs
0
 
LVL 17

Expert Comment

by:Rovastar
ID: 35383383
So I was correct I was code not an IIS issue.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question