IIS doesn't start. Error code: C0000142
Asked Answered
C

4

2

My site worked perfectly fine. When I restarted IIS (for some scenarios check) - It stopped working, and gave me a page telling me to check the event viewer, there I get the following error:

aspnet_wp.exe could not be started. The error code for the failure is C0000142. This error can be caused when the worker process account has insufficient rights to read the .NET Framework files. Please ensure that the .NET Framework is correctly installed and that the ACLs on the installation directory allow access to the configured account.

This is NOT an ACL problem.

Any ideas?

Calabrese answered 5/9, 2010 at 13:49 Comment(0)
C
3

For some reason, the ApplicationName setting has resetted to an empty string. Once I changed it - the site loaded like in the 'ol good days

Calabrese answered 12/9, 2010 at 6:21 Comment(0)
K
2

I receive this error every now and then. I have tried many of the solutions suggested on the web, but never managed to get rid of it.

A work-around I now use, is to simply start aspnet_wp.exe manually before running my ASP.Net application.

Start - Run; Open "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_wp.exe"; OK

So far, this has worked for me every time.

You can try it as a quick solution if you just have to continue working and don't want to spend time analysing the cause.

Kablesh answered 14/10, 2010 at 12:25 Comment(0)
H
1

If manually running aspnet_wp.exe doesn't work, just open task manager and kill all instances of explorer.exe, then on the Applications tab of task manager click the "New Task" button and enter explorer.exe. The aspnet_wp.exe process will restart as well.

Halophyte answered 3/11, 2010 at 2:7 Comment(0)
W
0

What version of ASP.NET is the service using? Can you try switching to a different version?

What's the output of either of the following commands:

.NET 4

C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis.exe -lv 

.NET 2.x

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis.exe -lv

If anything looks strange, try reinstalling your version of ASP.NET using the -i switch. If that works, then you should also verify your WCF installation using these commands:

.NET 4

C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>Service ModelReg.exe -lv

.NET 3.x

C:\WINDOWS\Microsoft.NET\Framework\v3.0\Windows Communication Foundation>Service
ModelReg.exe -lv

If there are any errors reported you can reinstall the appropriate binaries by running -ia

Woodborer answered 5/9, 2010 at 13:54 Comment(3)
I'm using v2.0, and it's our company's request (I can't use a newer version). And it's already registered (as I mentioned - it worked perfect before restarting)Calabrese
What Identity is under the app pool? What is under the Website? Is the account expired, disabled? Check the security event log. Sounds more like an account issue then. Check both accts for all the sysadmin stuff like lockout hours, GPO rights to log on as a service.Woodborer
This is IIS5 - hence no app pool (running on the default ASPNET service).Calabrese

© 2022 - 2024 — McMap. All rights reserved.