The process account used to run ASP.NET must have read access to the IIS metabase

When I publish my asp.net application and configure with iis6.0 (in windows XP) I got the error

“The process account used to run ASP.NET must have read access to the IIS metabase “

Steps:

1) Open the command prompt and go to the root path.

2) (here I m used Operating System is Windows XP) go to the dotnet framework Path. cd {Your Root Path}\WINDOWS\Microsoft.NET\Framework\v2.0.50727

3) write this in to command prompt aspnet_regiis –ga ASPNET

run this it gives The User ‘aspnet’ not exist.

This command with parameter (-ga) check the Grants the specified user (ASPNET) or group access to the IIS metabase and other directories that are used by ASP.NET.

4) write this in to command prompt aspnet_regiis –iru

run this it install the iis.

This command is Installs the version of ASP.NET that is associated with Aspnet_regiis.exe and only registers ASP.NET in IIS.

5) write this in to command prompt aspnet_regiis -s W3SVC/1/Root/.

Installs the script map points to the ASP.NET ISAPI version associated with Aspnet_regiis.exe. ASP.NET applications at the specified application root path and its subdirectories.

Thnx.

http://www.ibusiness-management.com/

50 responses to “The process account used to run ASP.NET must have read access to the IIS metabase”

  1. After trying many thing. This was the solution.

    Thanks a lot.

  2. Thanks – works for me too!

  3. Thank you very much.

  4. You are great. It finally worked. Thanks.

  5. Many many thanks. Perfect solution.

  6. Thank u very much

    for windows 2000 use WINNT in place of WINDOWS

    thanks again

  7. Thanks, this worked for me. One note.
    You can’t really tell since its underlined but its aspnet_regiis not aspnet regiis.

  8. Thanks a lot. it worked. i was struggled a lot to make it work. this article was very much helped to sort out the issue. again thanks

  9. Thanks.. It worked 🙂

  10. Nice! Worked perfectly.

  11. Thank you very much. You saved me a lot of time.

  12. Thanks..tried many other ways, but this one worked! thank you

  13. Thanks. It works for me.

  14. I tried the above options but it says “this error indicates this version of ASP dotnet must first be registered on the machine”

  15. Fantastic solution.It worked for me also.
    Thanks
    Sarnendu De

  16. Thanks. It worked for me.

  17. A Million Thanks. It works! all thumbs UP!!!.

  18. Grande maestro!!, awesome article, even better than the microsoft’s one

  19. […] mackbook y ya no pueda entrar a Ubuntu, preferí seguir la búsqueda por la red y me encontré con este blog en el cual, describen una solución que en lo personal, me funcionó muy […]

  20. Thanks for this solution, wouldnt have figured out. Also I did not need a “.” after the Root/

    Also something was wrong in command 4 if i copied and pasted into command window. But if i typed the same text it worked.

  21. awesome. i owe you one. whats your paypal account?

    PS: as Vasya mentioned, not need for a dot (.) after the Root/

    thanks a million

    1. Thanks for your valuable reply.

  22. Thanks a lot patriwala. The solution worked well. This really deserves to be in the Microsoft Knowledgebase.

  23. I ran up to step 4 and it worked!!
    Thanks a lot

  24. Thanks a lot.. it worked for me also but ‘. ‘ is not required after root.

    1. I think this extra dot is due to reflex of adding dot for every line end by British English users

  25. Thanks i had tried many things but this worked fine with no error nor complications.

    Thank you

  26. As others have mentioned, this also worked for me. Thanks.

  27. Gr8 one. short and simple explaination. It worked. Thanks alot.

  28. You’re a wizard!!! I was pulling my hair for hours trying to figure this out. Thank you sooooooo much! My site is up and running now!!! Thank you!!!!

  29. worked like a charm man thankx.

  30. thanks for your solution.. it works fine..

  31. Ashutosh Singh Avatar
    Ashutosh Singh

    Very clean solution. worked for me. Thanks!!!

  32. Finally the answer. Thanks.

  33. Great, thank you. no way to know that without you.

  34. Thanks a lot
    🙂

  35. Thanks, alot, Gr8 n Very simple solution.

  36. Angel Linares Avatar
    Angel Linares

    Thanks for solution.

  37. thank u so much it really works

  38. Thanks a lot… It works very well!!

  39. Sundar Sathana Avatar
    Sundar Sathana

    It is like magic to me. It worked perfect.
    Thanks for posting this solution.
    -Sundar

  40. Thanks a lot, It work!!!

  41. Thanks alot. Great post. Still doing its magic three years later. I was that close to quiting ASP.NET in favor of things that have more straightforward deployment. I’m soldiering on thanks to you so..kudos.

  42. I followed your instructions to the letter, but this does not work in Windows XP mode installed in Windows 7 64-bit Professional edition. Please help.

  43. After struggling for a lot of time.it worked .Thanks a lot

  44. Thaks Dear Very Useful thing

  45. Many Thanks! This worked! You are awesome!

  46. Cool Dude…you saved my day 🙂 God bless

  47. you deserve a medal of honor.. how come no one else on the internet had got this right. This guy deserves to be in microsoft

Leave a reply to Ashutosh Singh Cancel reply