Home > Asp.Net 2.0, dotnet > The process account used to run ASP.NET must have read access to the IIS metabase

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/

  1. Georges
    November 3, 2008 at 4:29 am | #1

    After trying many thing. This was the solution.

    Thanks a lot.

  2. Liat
    December 17, 2008 at 9:40 am | #2

    Thanks – works for me too!

  3. Gleb
    January 19, 2009 at 5:22 pm | #3

    Thank you very much.

  4. Vel
    March 26, 2009 at 6:28 pm | #4

    You are great. It finally worked. Thanks.

  5. Arabinda
    April 14, 2009 at 10:25 pm | #5

    Many many thanks. Perfect solution.

  6. Saidibabu
    April 22, 2009 at 10:50 am | #6

    Thank u very much

    for windows 2000 use WINNT in place of WINDOWS

    thanks again

  7. Matt
    May 13, 2009 at 6:15 am | #7

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

  8. Senthila
    May 28, 2009 at 1:40 pm | #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. Sujith
    June 10, 2009 at 4:24 pm | #9

    Thanks.. It worked :)

  10. dips1
    August 27, 2009 at 4:21 pm | #10

    Nice! Worked perfectly.

  11. Noam
    September 2, 2009 at 11:35 am | #11

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

  12. September 13, 2009 at 5:46 pm | #12

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

  13. Frank Ansola
    September 25, 2009 at 3:11 pm | #13

    Thanks. It works for me.

  14. ayyavar
    December 28, 2009 at 9:29 am | #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. Sarnendu De
    January 6, 2010 at 4:51 am | #15

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

  16. Parag
    February 4, 2010 at 5:00 pm | #16

    Thanks. It worked for me.

  17. Sudarshan
    February 16, 2010 at 4:26 pm | #17

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

  18. Yanick
    March 5, 2010 at 11:38 pm | #18

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

  19. Vasya
    April 6, 2010 at 12:15 am | #19

    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.

  20. shashank
    June 29, 2010 at 9:05 pm | #20

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

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

    thanks a million

  21. sanket
    August 2, 2010 at 11:31 pm | #22

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

  22. August 3, 2010 at 11:53 pm | #23

    Thanks! Helped a lot.

  23. mura
    August 20, 2010 at 6:17 pm | #24

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

  24. sudeshna
    September 30, 2010 at 4:41 pm | #25

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

    • ajit
      November 15, 2010 at 11:17 am | #26

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

  25. November 19, 2010 at 11:22 am | #27

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

    Thank you

  26. Graham
    November 30, 2010 at 11:17 pm | #28

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

  27. Preeti
    December 6, 2010 at 6:18 pm | #29

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

  28. December 16, 2010 at 4:19 am | #30

    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. abk
    January 31, 2011 at 10:20 am | #31

    worked like a charm man thankx.

  30. sai
    February 16, 2011 at 6:41 am | #32

    thanks for your solution.. it works fine..

  31. Ashutosh Singh
    May 18, 2011 at 5:22 am | #33

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

  32. Odnaurus
    May 19, 2011 at 3:05 pm | #34

    Finally the answer. Thanks.

  33. Ronen
    June 14, 2011 at 12:37 pm | #35

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

  34. Ashi
    June 20, 2011 at 7:55 am | #36

    Thanks a lot :)

  35. Bhramar
    July 10, 2011 at 8:44 am | #37

    Thanks, alot, Gr8 n Very simple solution.

  36. Angel Linares
    July 14, 2011 at 4:41 pm | #38

    Thanks for solution.

  37. prachi
    July 18, 2011 at 12:35 pm | #39

    thank u so much it really works

  38. tane
    July 25, 2011 at 3:01 am | #40

    Thanks a lot… It works very well!!

  39. Sundar Sathana
    August 8, 2011 at 2:57 pm | #41

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

  40. JeFF
    August 21, 2011 at 12:57 pm | #42

    Thanks a lot, It work!!!

  41. Slothy Sakata
    October 18, 2011 at 9:09 am | #43

    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. sucharitha
    December 15, 2011 at 10:27 am | #44

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

  1. April 2, 2010 at 8:19 am | #1

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 244 other followers