Tuesday, March 22, 2011

Aspnet_wp.exe could not be started. The error code for the failure is 80004005. 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.

 

Very Annoying !!!! Very VERY Annoying !!! Seems like no one had the resolution to this issue when it happened to running a website using ASP .Net framework. The only options people had was to reset iis, re-register iis with .net, setting up the permissions on the ASPNET account correctly,  to create a custom account and to put it manually in the machine.config, or even changing the name of your computer because it might contain invalid characters etc. But none of them worked.

Well, many people said that by the looks of it obviously it doesn’t even seem to be a .Net issue. And it’s not. It’s a rights issue. However, things didn’t quite move until I got here. They have an executable that you need to download and run. But it just says the following:

> REM This batch file addresses issues that exist with MS03-32 with

> REM V1.0 of ASP.NET on windows XP only.

> REM If you have any other configuration, you should not need to run this

> “Version 1.1 appears to be installed, you should not need to run this file”

And then it exits.

 

Well as I said this is not a .net version issue but a right’s issue the solution proposed by this fix was still applicable to me even though I was running ASP.Net V4.0. All you have to do is to open the file in notepad and follow what they say. I will write it down for convenience sake.

  1. cd C:\Windows\Microsoft.NET\Framework\v4.0.30319
  2. iisreset /stop
  3. net stop aspnet_state
  4. net user ASPNET /delete
  5. net user ASPNET 1pass@word /add
  6. Make ASPNET an administrator. Go to Start >My Computer > Manage > Local Users and Groups > Groups > Administrators > Add > Locations > Chose your PC from that. Click Ok. Type ASPNET in the text box. Click on “Check Names” and ASPNET should be <YOURPCNAME>\ASPNET and underlined Now. Click Ok. Click Ok on the Administrators Properties dialog box.
  7. runas /profile /user:ASPNET cmd.exe
  8. aspnet_regiis –i
  9. iisreset /start

Try opening the webpage. Hope this takes care of the issue.

3 comments:

  1. Worked like a charm. Thank you

    ReplyDelete
  2. it's not working :(

    ReplyDelete
  3. You can also add another user and give it sufficient provilages (set as administrator), and then set it up to run the iis webserver. Check out http://dailydevscoveries.blogspot.com/2011/11/if-you-are-getting-error-like-following.html

    ReplyDelete