We help IT Professionals succeed at work.

IIS Cannot Uninstall

ramrocket asked
Medium Priority
Last Modified: 2008-01-09
My IIS got corrupted.  I am trying to unstall it but it cannot uninstall.
On XP I did the following:
1.  Disable the IIS service
2.  reboot
3.  delete wwwroot
4.  add windows component - iis
when it gets to 80% it gives me this error:'

Error writing to encrypted data to the Web Servers configuration database(metabase)
0x8009000f=object already exist
Press Retry or Write Unencrpted to write the data unencrypted...

What to do???

many thanks,
Watch Question

If you remove this folder
That should fix the error you're getting
then reinstall IIS


I cannot delete / rename the dir because a program is using it.  what program?  IIS Admin service is disabled
Have you tried in Safe Mode ?


I manage to delete all files/folders except 3 dlls that wont delete.
1. aqadmin.dll
2. aqueue.dll
3. seos.dll

how do I kill these dll.  I delete them and they just comeback
You won't get rid of those, now just reinstall IIS


I reinstall and same error.  stops @ 80% and

Error writing to encrypted data to the Web Servers configuration database(metabase)
0x8009000f=object already exist
Press Retry or Write Unencrpted to write the data unencrypted...
You are logged on with appropriate permission, correct ?

What errors are you recording in your event logs ?

Deleting the metabase as we did, should have allowed you to reinstall IIS so we must have another issue here.


where is the metabase??


I deleted everything in this dir exept for the 3 dlls metioned above
How about the event viewer or permissioning ?

Lets try one other thing

Navigate to the following folder

%Windir%\Profiles\All Users\Application Data\Microsoft\Crypto\Rsa\MachineKeys directory

Rename the Machinekeys folder to Machinekeys1

then try to reinstall IIS


no profiles dir
C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\Rsa\MachineKeys directory


it looks like it has installed iis but need to verify if it is working.  I have to uninstall explorer then reinstall.  how do i verify that iis is working properly??
open a browser and go to http://localhost/ and see if the server reports back an error of 400 orsetup a site and page then http://localhost/somepage.html


no go.  localhost is not there.  I also try to bringup inetmgr.exe and it complains:
failed to initialize snapin.  

I'll increase the points, thanks for tyring to help me on this.
Is the service started ?


Stick a page in your inetpub folder and put the following in a browser


replace my_server_name with the name of your computer
replace mypage.html with the page name


page not found
I need a little more info or we'll be here all night

What is the URL you used ?
If you use something different then htm you'll have to enter the document type in the IIS settings

Also, lets try to reregister the inetmgr dll file
open a command prompt and type regsvr32 C:\Windows\system32\inetsrv\inetmgr.dll
then try to run the snapin


Commented: and inetmgr.dll is registered and snapin works now.  now just need to get the localhost to work.  almost there.
That URL is not correct

use http://my_server_name/mypage.html

replace my_server_name with the name of your computer

your computers name can be found in control panel, system, computer name tab

in any event, sounds like everything is working now

you may just want to go with setting up a site


that is the ip address of my machine.  i also place the machine name and same error
do you have a default site setup ?


that is the problem.  i dont have any item in the treeview - ftp site, default site, etc.  will look at this tommorow.
I had no way of knowing that

There seems to still be a problem with the metabase. Shut the service down and try to reinstall again

That file should reside in windows\system32\inetsrv
Service Engineer
If you have any restore point in your XP then restore it to the previous state. If not you have to a clean install of XP again

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts


I have already done a restore recovery for xp since my computer crash.
Sridhar CherukuriService Engineer

Then you have no option other than cleran re-install of XP i guess.

first things first.  When uninstalling IIS you need to make sure all services are stopped.  Also, make sure windows unloads DLL's from memory, otherwise you will get no-where.

from the comman prompt  (Start->Run- type in cmd hit enter)

net stop w3svc ->Hit Enter
net stop msftpsvc ->Hit Enter
net stop smtpsvc ->Hit Enter

see here for how to find out what other services are running for your IIS

once all the services are stopped, go through the Control Panel and remove IIS.

Restart the machine.

Once the machine is back up, go and re-install IIS through the control panel

you do not need to do a clean install of the OS.

If the uninstall fails after trying my suggestions, hit CTRL-ALT-DEL.  and list here what processes are running at that time.  There may be a service that is still running for IIS


I can't believe this.  to uninstall and reinstall IIS I had to reinstall the operating system.  thanks guys for all your help.  
Sridhar CherukuriService Engineer

I do agree this is something viet to re-install the OS just to uninstall IIS. It is not only with IIS there some other issues in XP which forces you to re-install the entire OS to get it up and running. There might be solutions for those issues also. but in these situtations when we are not sure it is better to have a clean re-install
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.