ASP .NET 2.0 - IIS worker process terminating unexpectedly. Event ID: 1009 - The process exit code was '0xc0000005'

Posted at: 7/8/2008 at 10:49 PM by saravana

I'm in the process of migrating biztalk247.com to a new hosting provider. After deploying the application, I started doing the performance testing using Visual Studio Web/Load test features. I configured the IIS Application Pool to have a web garden (more than one worker process w3wp.exe) to serve the incoming requests. The application pool also got settings to recycle the worker process after certain usage of virtual memory/physical memory.

During the test, once the virtual/physical memory limit is reached, the worker process will recycle. As soon as this occurs I started noticing entries in the eventlog with following warning message

A process serving application pool 'biztalk247' terminated unexpectedly. The process id was '12308'. The process exit code was '0xc0000005'. (Event ID: 1009)

and an error message

Faulting application w3wp.exe, version 6.0.3790.3959, stamp 45d6968e, faulting module unknown, version 0.0.0.0, stamp 00000000, debug? 0, fault address 0x001f0001. (Event ID 1000)

Eventually after few of these errors, IIS Application pool will shut down and started getting 503 Service Unavailable.

After doing a bit of research I found this KB article really useful http://support.microsoft.com/kb/918041. According to this article, whenever a worker process shuts down it writes some information to the registry at the following location HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<ASP.NETVersion>\Names and there is not enough permission to do so. I checked the location in the server and to my surprise I can't see the "Names" key. I created it manually and tried to assign the permission to IIS_WPG group as described in the KB article, but as soon as I right-click and select "Permissions" I got some kind of warning message saying the list is not in the order ("I didn't capture the exact error message").

For me it looks like ASP .NET 2.0 is not configured correctly. So I decided to uninstall and install ASP.NET 2.0 using the aspnet_regiis (-u and -i switch) to be on the safe side, since its the early stages of deployment.

After doing so, I right clicked on the "Names" key and didn't see any warnings.

I reran the test again, this time the worker process shutdown properly without any warnings/errors. Looking at the registry revealed ASP.NET has written some values under the key "Names" as shown in the picture below.

image

Nandri!

Saravana

Tags:  Categories: ASP .NET
Actions: Email this article Email | Kick it! | DZone it! | Save to del.icio.us | Technorati Links
Post Information: Permanent LinkPermalink | CommentsComments(5) | Comments RSS

Comments

Thursday, August 05, 2010 1:45 AM
Seattle Limousines
I should really be working
Saturday, August 07, 2010 3:52 PM
Cam Chat
Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here It's always nice when you can not only be informed, but also entertained I'm sure you had fun writing this article.
Saturday, August 07, 2010 4:20 PM
Sex Cam
Awesome site, just bookmarked it on delicious. Hopefully, you can see a few more visitors.
Saturday, August 14, 2010 10:54 AM
timberland 6 boots
She told me that she had worked for timberland 6 inch years for an insurance company. She never mentioned family, and I did not ask. I have thought about her timberland mens custom often over the years and how she struggled in a society that places an incredible premium on looks, class, wealth and all the other fineries of life. She suffered from a disfigurement that cannot be made to look attractive. I know that her condition black timberland boots hurt her deeply. http://www.timberland6inch.com/
Thursday, August 26, 2010 2:14 PM
edhardyswholesale
[url=http://www.edhardyswholesale.com]cheap ed hardy clothing[/url]
[url=http://www.edhardyswholesale.com]new coogi jeans[/url]
[url=http://www.edhardyswholesale.com]wholesale true religion[/url]
[url=http://www.edhardyswholesale.com]designe abercrombie fitch t shirts[/url]
[url=http://www.edhardyswholesale.com]discount louis vuitton boots[/url]  
[url=http://www.edhardyswholesale.com]fashion fendi handbags[/url]
[url=http://www.edhardyswholesale.com]online chanel clothing[/url]
[url=http://www.edhardyswholesale.com]sell affliction jeans[/url]
[url=http://www.edhardyswholesale.com]cheap ed hardy[/url]
[url=http://www.edhardyswholesale.com]replica jordan sneakers[/url]

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading