Monday, February 18, 2008

Failed to access IIS metabase.

This error typically occurs when you install IIS after you have asp.net installed. It is a very simple fix.

Copy and paste this into the Run Command from the Start Menu.
%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i

This will reinstall asp.net for use with IIS and in most cases fixes the error stated above.

102 comments:

  1. That worked for me

    ReplyDelete
  2. Thanks for the concise advice! I really appreciate it.

    ReplyDelete
  3. I have been reading bundles of microsoft articles to fix this issue. your post fixed it in less than a minute. Thank you

    ReplyDelete
  4. Thank you very much. It solved my problem!

    ReplyDelete
  5. That was really priceless tip.

    ReplyDelete
  6. That worked like a charm. Thank you!

    ReplyDelete
  7. Worked for me! Thanks!

    ReplyDelete
  8. You, sir, are a flippin headache saver. I just wasted 30 minutes in command prompt hell, when all I could have done was hit your site. If I were next to you, I'd slap you five, you jive turkey.

    ReplyDelete
  9. Dude.... you are tooo gud... Thanks a Ton !!!!!!!!!!!!!!!

    ReplyDelete
  10. if only I read this first

    thank you very much

    ReplyDelete
  11. Thank you - after going through the MS KB hell - I found your post and of course, it saved the day.

    Serves me right for running XP for web development, I guess.

    ReplyDelete
  12. Spent the past three hours trying different techniques recommended via MS KB, then found this page, and like others, 10 seconds and problem fixed. Thanks

    ReplyDelete
  13. Worked like a charm. Thanks!

    ReplyDelete
  14. tanx very muchhhhhhhhhhhhhh
    :):X:*

    ReplyDelete
  15. Wow..that was soooooo easy. Thank you for the resource.

    ReplyDelete
  16. Worked great!
    Thanks a lot

    ReplyDelete
  17. Still no good for me.
    Any other ideas?

    ReplyDelete
  18. You rock!
    Why couldn't Microsoft just tell me that?

    ReplyDelete
  19. Glad I found your site. The solution you suggested has saved me a week of on and off headaches!!!

    ReplyDelete
  20. Thank You Thank You ThanK yOu sooooo much dude...

    ReplyDelete
  21. the first thing i did is to bookmark this site. it worked like magic. microsoft kb did not solve the problem. thank man.

    ReplyDelete
  22. Ditto what everyone else said...shouldn't be so hard to find concise, accurate info

    ReplyDelete
  23. Thanks! This did the trick!

    ReplyDelete
  24. Thanks a ton.
    I had spent whole trying to figure out.

    ReplyDelete
  25. Problem Solved!

    Thanks a lot!!

    ReplyDelete
  26. Amazing. Thank you for taking the time to post this and saving many a ton of time!

    ReplyDelete
  27. Excellent - time saver tip. Thanks!

    ReplyDelete
  28. Crazy thing for me. We had to rename the server and then had issues. I tried to do the aspnet_regiis -ga, but that didn't help. The only thing that helped was aspnet_regiis -u. If I unregistered it, the webservices used ASPNET 2.0 just fine. if I register it again they break. Very frustrating issue.

    ReplyDelete
  29. Being very skeptic of quick fixes, I doubted this fix. In the end I did give it a try and it worked wonderfully. Thank you!!!

    ReplyDelete
  30. @Anonymous, I don't blame you for being a skeptic. Don't trust everything you read on the web, someone might tell you to do something stupid and open yourself up to attack. But I am glad you gave it a try, and even happier that it worked for you and SO many others.

    At my last job this came up on the support forums that I was apart of pretty frequently, so I used my post as a Canned response to the question.

    ReplyDelete
  31. thanks buddy, it really helped em out.. ;)
    cheers...

    ReplyDelete
  32. Gracias por la ayuda funciono

    ReplyDelete
  33. Gracias por la ayuda funciono

    ReplyDelete
  34. Thank you very much dude... very nice...

    ReplyDelete
  35. Thanks! Worked like a charm!

    ReplyDelete
  36. Thanks a ton! That worked.

    ReplyDelete
  37. Thanks a lot for the useful information.
    Thats working....

    ReplyDelete
  38. Wow,thank you very much for the quick fix...i have been reading bunch of micorosoft's useless suggestions
    Thanks again

    ReplyDelete
  39. didn't work for me.

    any ideas??

    ReplyDelete
  40. @xjufox - No, I'm sorry I don't have any ideas right now. The only time I ran into the problem is when I installed IIS after I had installed the .Net framework. Also this command is only valid for .Net 2 and I am not sure it will work if you only have .Net 3 or .Net 3.5.

    Also as a side note I no longer work for a Windows shop, so I don't really have access to a Windows Server to play with it.

    ReplyDelete
  41. Thx! worked for me...

    ReplyDelete
  42. Short and simple. How sweet!
    Keep up the good work!

    ReplyDelete
  43. I tried your solution and I still have the same error message "Failed to access IIS metabase". Could you tell me how to troubleshoot the problem?

    ReplyDelete
  44. Microsoft gave a BS soution to do that involved downloading a script and running a long command from the CMD window. You solution fixed it in less time then it took to read the article. Good job.

    ReplyDelete
  45. Thank God for people like you. 4 IT guys gave up on it completely and you have just saved me with one short command!

    ReplyDelete
  46. Thanks, this was spot-on advice!

    ReplyDelete
  47. simply brilliant....thanx boss

    ReplyDelete
  48. I'll even leave my name. You rock!!
    I tore my hair out for an hour trying stuff before I found this post.

    Always install IIS before .NET I guess.

    Thank you soooo much.

    Gary Parkin

    ReplyDelete
  49. Thank you so much!!!! I tried so many things and so many re-boots - to no avail.
    Thanks again.
    Kusum

    ReplyDelete
  50. Thanks.. this solve my problem :)

    ReplyDelete
  51. Thanks a million dude..

    ReplyDelete
  52. Thank you. Your advice saved me who knows how much time crawling through the KB.

    ReplyDelete
  53. Thanks Dude you have made my day

    ReplyDelete
  54. Thanks for posting this solution.

    ReplyDelete
  55. Thanks for being awesome.

    ReplyDelete
  56. Thanks a LOT!!!!!!!!!!!!!!!!!!!!!!!!!!!!! So happy..............

    ReplyDelete
  57. Simple solution. Why does Microsoft not publish this on their website?

    http://support.microsoft.com/?kbid=267904

    ReplyDelete
  58. Thank you for the solution

    ReplyDelete
  59. Thanks! Worked like charm!

    ReplyDelete
  60. Thanks a lot!

    ReplyDelete
  61. absolutely brilliant is this guy, thanks a lot mate

    ReplyDelete
  62. After many hours trying other solutions, your solution worked! Thank you very very much!

    ReplyDelete
  63. Like everyone else, I'd like to say thanks.

    ReplyDelete
  64. Thanks for posting this, you've saved me a lot of going in circles trying to fix!!

    ReplyDelete
  65. Add me to the list ! Thanks a lot, as said before I read a whole bunch of MS stuff before seeing your comment. And it worked

    Cheers from Chile,

    Jean-Luc

    ReplyDelete
  66. You rock! This worked perfectly!

    ReplyDelete
  67. Thank you so much for your advice. This issue also appears when moving a .NET 2003 project to .NET 2005 so it is good to keep in mind as well.

    Thank you!

    ReplyDelete
  68. Worked on XP as well!!!

    Thank you

    ReplyDelete
  69. thanx working fine

    ReplyDelete
  70. I too owe u some thanks! im new at this and when i saw that error after everything was working great in Visual studio i freaked lol. it looks like all complex just a asp config error tho. thanks a bunch!

    ReplyDelete
  71. Honestly, this needs to be posted on dotnetnuke.com site! Great fix.

    ReplyDelete
  72. 2 days of searching for a solution, 10 second fix found here

    ReplyDelete
  73. One of the developers on my team contacted me with this error. We were at a loss and thought there were some larger internal problems with his new web service.

    This site came up as the first hit in Google and I was incredibly doubtful about the proposed solution - its never that easy.

    Well we ran the reinstall and as the dev put it "HUZZAH!" - it really worked.

    Thanks again for saving us a huge amount of time tracking the answer down.

    ReplyDelete
  74. thanks buddy it worked absolutely fine for me

    ReplyDelete
  75. Absolutely brilliant. I've been farting about with IIS, site security settings and manually adding windows and domain accounts to the metabase to no avail.

    Until I saw this tip! Instant fix!

    Thanks Steve :D

    ReplyDelete
  76. Thanks, bro.
    it's great solution.

    ReplyDelete
  77. Thank a lot. This work for me.

    ReplyDelete
  78. Great job. Saved a lot of times and hassle. Thank you for the great tips.

    Alex,

    ReplyDelete
  79. Great. Thank you for your tip in ths matter. Saved me a lots of time and hassle.

    Alex,

    ReplyDelete
  80. Great. Thanks a lot. Worked perfectly. Saved me time and headach.

    Alex

    ReplyDelete
  81. Fantastic, spent 1 hr on Microsoft site, to no avail. This took care of it in no time.

    ReplyDelete
  82. penjahat kelamin6/09/2009 02:01:00 AM

    trust me..., IT WORKS>>>> L-Men

    ReplyDelete
  83. one more fan of concise advice !

    ReplyDelete
  84. Worked for me as well. Thanks.

    ReplyDelete
  85. It work for me as well and Thanks for sharing !!

    ReplyDelete
  86. Thanks, You saved me.

    ReplyDelete
  87. Your the best...Really appreciate your post..Saved me so much time...

    ReplyDelete
  88. Thanks a million, dude.

    ReplyDelete
  89. If you have asp.net 4.0 installed, you might have to do it there too (I did). Good luck all, and thanks!

    ReplyDelete
  90. dude it also works with .net 3.5....i tried it!!

    ReplyDelete
  91. Thanks!!! It worked for me too :)

    ReplyDelete