Solved

w3wp.exe crashing, changed pool identity to Local System, no crash, changed back to Network Service, no crash, why?

Posted on 2007-03-29
12
1,776 Views
Last Modified: 2010-08-05
IIS 6.0 is being ran on a Windows Server 2003 Domain Controller machine. A problem was sent my way to fix. The problem is as follows.

The w3wp.exe worker process would crash after a machine reboot. I reproduced the error (see below)  6  times. I then changed the Identity of the default application pool to Local_System from Network_Service. I then rebooted. The error did not appear. I reboot about 5 times and there was still no error appearing visually or in the event log. I then set the application pool identity back to Network_Service and rebooted. However, the error did not appear. I rebooted another 5 times and the error would still not occur, and I can't get it to reoccur.  What I am wondering is did the application pool need higher privliges to do something it only had to do once? And since it was able to do it once when I gave it higher privliged identity setting it back down would not have reproduced the error? Is anyone aware of anything that it may have only had to do once?

Beyond just that, any ideas on why the described events occured the way they did?

Lastly, once the error occured it did not keep reoccuring during the same session, meaning I had no problem starting ASP.NET web applications or ASP apps, and they all ran fine. This error only occured on startup.

Oh, and at the moment I do not have the ability to install IIS Diags or IIS State.

Any ideas / help would be appreciated.

The following is the generic crash error logged in the Application Event Log:

Event Type:Information
Event Source:Application Error
Event Category:(100)
Event ID:1004
Date:3/29/2007
Time:9:09:55 AM
User:N/A
Computer:ROUGE
Description:
Reporting queued error: faulting application w3wp.exe, version 6.0.3790.1830, faulting module unknown, version 0.0.0.0, fault address 0x001f0001.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

0
Comment
Question by:Drifter88zxtW
12 Comments
 
LVL 29

Expert Comment

by:rdivilbiss
ID: 18820167
http://blogs.msdn.com/david.wang/archive/2005/08/29/HOWTO_Understand_and_Diagnose_an_AppPool_Crash.aspx

From looking at other EE members who have had this problem there was discussion of a hotfix for .NET 2.0

Also one member said: I think I have resolved the problem. I went in to the IIS manager and restarted each of the application pools. After I did that, I got the following message in the event viewer: RPC Proxy successfully loaded in Internet Information Services (IIS) mode 6.0.
0
 
LVL 2

Author Comment

by:Drifter88zxtW
ID: 18820312
Thanks rbivilbiss for responding,

First, I have read David Wang's famous blog entry before, and as I said, I cannot use (at the moment) the IIS State or IIS Diagnostics Toolkit because for the moment we are not allowed to install anything on the production test servers.

Second, I did search this group before I posted my question, I did not see any topics closely related to my problem. Could you direct me to the topics you felt were similar to my problem? and I just searched for the RPC proxy topic you mentioned and I could find no topic closely related to my problem. It is possible I searched poorly...

If you have any further thoughts or ideas rbivilbiss please feel free to post, and of course that goes for anyone else peeking in at this topic, please feel free to post your thoughts..

0
 
LVL 29

Expert Comment

by:rdivilbiss
ID: 18820343
Search here for "faulting application w3wp.exe"
0
 
LVL 2

Author Comment

by:Drifter88zxtW
ID: 18820455
I think maybe my topic was to convoluted. Those topics that came up with the search you posted were only related as so far as it concerned w3wp.exe crashing which can be caused by many many different reasons, and most the topics basically had nothing in common with my topic other than the crash.

My primary question is:

After changing the Default Application Pool to Local_System from Network_Service w3wp.exe stopped crashing on startup. That was all I changed, so I assumed when I changed it back to its original Identity setting Network_Service the w3wp.exe would start crashing again on reboot. It did not, why?

I realise no one will probably be able to tell me exactly why, but I am hoping for some good ideas to send me off looking in the right direction.
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 29

Expert Comment

by:rdivilbiss
ID: 18820507
That indeed is a much better question, to which I'm afraid I have no valuable contribution.
0
 

Expert Comment

by:noeffort
ID: 18841840
I have been having this problem (after reboot, w3wp.exe crashes)

I have resolved the problem, as far as I can tell that is, as it may have related to PAE.  This is a VM, and though attempted to set VMWare Workstation vmx file to "off" for the PAE, this did not disable the PAE.

I instead then followed instructions to change the boot.ini to include /NoExecute=alwaysoff for PAE enabled but this disables DEP
http://support.microsoft.com/kb/886348
After subsequent reboots, the w3wp.exe process stopped crashing.
0
 
LVL 2

Author Comment

by:Drifter88zxtW
ID: 19483087
The Solution:

The crash appears to be a consequence of an earlier failure to read this
registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ASP.NET _2.0.50727\Names

When ASP.NET 2.0 is installed the local group IIS_WPG is given special
permissions on this key. When the server is a domain controller the IIS_WPG
group becomes a domain group (there are no local groups on domain
controllers) and the NETWORK SERVICE account cannot be a member of it as it
is a BUILTIN account.

What you will need to do is give the NETWORK SERVICE account specific
permissions to that key.

Start Regedit and navigate to that key.
Right-click "Names" and select Permissions on the context menu.
Click Add and enter NETWORK SERVICE, click "Check Names" and click Ok.
With NETWORK SERVICE highlighed in the "Groups or User Names" list click
"Advanced"
On the "Advanced Security Settings for Names" dialogue highlight NETWORK
SERVICE and click "Edit"
In the "Permission entry for Names" dialogue check the "Name" box is showing
"NETWORK SERVICE" and put check marks against "Query Value", "Set Value",
"Create Subkey", "Enumerate Subkeys", "Notify" and "Read Control".
Click Ok on all the dialogues and close regedit.

Ensure your application pools are reconfigured to run as NETWORK SERVICE (or
at least all the ones you want to be) and restart them.

On subsequent restarts the w3wp.exe crash should not occur.

You'll probably want to repeat the above for LOCAL SERVICE as well.


+++++++++++++++++++++++++++++++++++++++++++

This solution was obtained from:

http://www.issociate.de/board/goto/1239431/w3wp.exe_Problem.html

0
 
LVL 29

Expert Comment

by:rdivilbiss
ID: 19509133
Recommend close but not deleted for the solution, with point refunded.
0
 
LVL 1

Accepted Solution

by:
Vee_Mod earned 0 total points
ID: 19538240
Closed, 500 points refunded.
Vee_Mod
Community Support Moderator
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Learn about cloud computing and its benefits for small business owners.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This video teaches users how to migrate an existing Wordpress website to a new domain.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now