IIS Admin Service failed to start with 'Class not registered' error

Published Jul 02 2021 10:33 PM 1,052 Views
Microsoft

 

I came across a scenario where IIS admin was failing to start with error

ashfana_0-1625290153686.png

 

 

0x80040154

-2147221164

REGDB_E_CLASSNOTREG

Class not registered

winerror.h

 

ashfana_1-1625290153692.png

 

 

 

 

--Checked procmon which is a must go tool for  such issues

--tracing it , I could see below

1:46:11.7430366 PM      inetinfo.exe       9184       7516       RegOpenKey      HKCR\CLSID\{BA4E57F0-FAB6-11CF-9D1A-00AA00A70D51}                NAME NOT FOUND         Desired Access: Read      NT AUTHORITY\SYSTEM 0

1:46:11.7431643 PM      inetinfo.exe       9184       7516       RegOpenKey      HKCR\WOW6432Node\CLSID\{BA4E57F0-FAB6-11CF-9D1A-00AA00A70D51}            NAME NOT FOUND         Desired Access: Read      NT AUTHORITY\SYSTEM 0

1:46:11.7437105 PM      inetinfo.exe       9184       7516       RegOpenKey      HKCR\CLSID\{BA4E57F0-FAB6-11CF-9D1A-00AA00A70D51}                NAME NOT FOUND         Desired Access: Read      NT AUTHORITY\SYSTEM 0

1:46:11.7438050 PM      inetinfo.exe       9184       7516       RegOpenKey      HKCR\WOW6432Node\CLSID\{BA4E57F0-FAB6-11CF-9D1A-00AA00A70D51}            NAME NOT FOUND         Desired Access: Read      NT AUTHORITY\SYSTEM 0

1:53:01.7480590 PM      inetinfo.exe       9440       9812       RegOpenKey      HKCR\CLSID\{BA4E57F0-FAB6-11CF-9D1A-00AA00A70D51}                NAME NOT FOUND         Desired Access: Read      NT AUTHORITY\SYSTEM 0

1:53:01.7481572 PM      inetinfo.exe       9440       9812       RegOpenKey      HKCR\WOW6432Node\CLSID\{BA4E57F0-FAB6-11CF-9D1A-00AA00A70D51}            NAME NOT FOUND         Desired Access: Read      NT AUTHORITY\SYSTEM 0

1:53:01.7485668 PM      inetinfo.exe       9440       9812       RegOpenKey      HKCR\CLSID\{BA4E57F0-FAB6-11CF-9D1A-00AA00A70D51}                NAME NOT FOUND         Desired Access: Read      NT AUTHORITY\SYSTEM 0

1:53:01.7486327 PM      inetinfo.exe       9440       9812       RegOpenKey      HKCR\WOW6432Node\CLSID\{BA4E57F0-FAB6-11CF-9D1A-00AA00A70D51}            NAME NOT FOUND         Desired Access: Read      NT AUTHORITY\SYSTEM 0

 

this key HKEY_CLASSES_ROOT\CLSID\{BA4E57F0-FAB6-11cf-9D1A-00AA00A70D51}\InprocServer32 has the value %windir%\system32\inetsrv\metadata.dll  which was missing

--I did  a test on my machine by deleting BA4E57F0-FAB6-11CF-9D1A-00AA00A70D51}      from HKCR node

--got the exact error

 

ashfana_3-1625290332392.png

Such issues can come up after OS upgrade, while doing a registry restore/backup

 

 

 

 

 

%3CLINGO-SUB%20id%3D%22lingo-sub-2512966%22%20slang%3D%22en-US%22%3EIIS%20Admin%20Service%20failed%20to%20start%20with%20'Class%20not%20registered'%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2512966%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20came%20across%20a%20scenario%20where%20IIS%20admin%20was%20failing%20to%20start%20with%20error%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ashfana_0-1625290153686.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F293250i58A1F22AB742C577%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ashfana_0-1625290153686.png%22%20alt%3D%22ashfana_0-1625290153686.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CTABLE%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22103%22%3E%3CP%3E0x80040154%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22108%22%3E%3CP%3E-2147221164%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22211%22%3E%3CP%3EREGDB_E_CLASSNOTREG%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22152%22%3E%3CP%3EClass%20not%20registered%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%2279%22%3E%3CP%3Ewinerror.h%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ashfana_1-1625290153692.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F293251i39D3220A903D280B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ashfana_1-1625290153692.png%22%20alt%3D%22ashfana_1-1625290153692.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E--Checked%20procmon%20which%20is%20a%20must%20go%20tool%20for%26nbsp%3B%20such%20issues%3C%2FP%3E%0A%3CP%3E--tracing%20it%20%2C%20I%20could%20see%20below%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%20color%3D%22%23000000%22%3E%3CEM%3E1%3A46%3A11.7430366%20PM%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3CSTRONG%3E%26nbsp%3B%20inetinfo.exe%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%209184%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%207516%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20RegOpenKey%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20HKCR%5CCLSID%5C%7BBA4E57F0-FAB6-11CF-9D1A-00AA00A70D51%7D%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20NAME%20NOT%20FOUND%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSTRONG%3E%20Desired%20Access%3A%20Read%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20NT%20AUTHORITY%5CSYSTEM%200%3C%2FEM%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%20color%3D%22%23000000%22%3E%3CEM%3E1%3A46%3A11.7431643%20PM%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20inetinfo.exe%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%209184%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%207516%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20RegOpenKey%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20HKCR%5CWOW6432Node%5CCLSID%5C%7BBA4E57F0-FAB6-11CF-9D1A-00AA00A70D51%7D%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20NAME%20NOT%20FOUND%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Desired%20Access%3A%20Read%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20NT%20AUTHORITY%5CSYSTEM%200%3C%2FEM%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%20color%3D%22%23000000%22%3E%3CEM%3E1%3A46%3A11.7437105%20PM%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20inetinfo.exe%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%209184%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%207516%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20RegOpenKey%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20HKCR%5CCLSID%5C%7BBA4E57F0-FAB6-11CF-9D1A-00AA00A70D51%7D%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20NAME%20NOT%20FOUND%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Desired%20Access%3A%20Read%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20NT%20AUTHORITY%5CSYSTEM%200%3C%2FEM%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%20color%3D%22%23000000%22%3E%3CEM%3E%3CSTRONG%3E1%3A46%3A11.7438050%20PM%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20inetinfo.exe%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%209184%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%207516%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20RegOpenKey%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20HKCR%5CWOW6432Node%5CCLSID%5C%7BBA4E57F0-FAB6-11CF-9D1A-00AA00A70D51%7D%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20NAME%20NOT%20FOUND%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSTRONG%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Desired%20Access%3A%20Read%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20NT%20AUTHORITY%5CSYSTEM%200%3C%2FEM%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%20color%3D%22%23000000%22%3E%3CEM%3E1%3A53%3A01.7480590%20PM%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20inetinfo.exe%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%209440%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%209812%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20RegOpenKey%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20HKCR%5CCLSID%5C%7BBA4E57F0-FAB6-11CF-9D1A-00AA00A70D51%7D%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20NAME%20NOT%20FOUND%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Desired%20Access%3A%20Read%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20NT%20AUTHORITY%5CSYSTEM%200%3C%2FEM%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%20color%3D%22%23000000%22%3E%3CEM%3E1%3A53%3A01.7481572%20PM%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20inetinfo.exe%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%209440%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%209812%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20RegOpenKey%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20HKCR%5CWOW6432Node%5CCLSID%5C%7BBA4E57F0-FAB6-11CF-9D1A-00AA00A70D51%7D%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20NAME%20NOT%20FOUND%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Desired%20Access%3A%20Read%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20NT%20AUTHORITY%5CSYSTEM%200%3C%2FEM%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%20color%3D%22%23000000%22%3E%3CEM%3E1%3A53%3A01.7485668%20PM%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20inetinfo.exe%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%209440%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%209812%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20RegOpenKey%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20HKCR%5CCLSID%5C%7BBA4E57F0-FAB6-11CF-9D1A-00AA00A70D51%7D%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20NAME%20NOT%20FOUND%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Desired%20Access%3A%20Read%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20NT%20AUTHORITY%5CSYSTEM%200%3C%2FEM%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%20color%3D%22%23000000%22%3E%3CEM%3E1%3A53%3A01.7486327%20PM%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20inetinfo.exe%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%209440%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%209812%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20RegOpenKey%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20HKCR%5CWOW6432Node%5CCLSID%5C%7BBA4E57F0-FAB6-11CF-9D1A-00AA00A70D51%7D%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20NAME%20NOT%20FOUND%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Desired%20Access%3A%20Read%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20NT%20AUTHORITY%5CSYSTEM%200%3C%2FEM%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ethis%20key%20%3CSTRONG%3EHKEY_CLASSES_ROOT%5CCLSID%5C%7BBA4E57F0-FAB6-11cf-9D1A-00AA00A70D51%7D%5CInprocServer32%3C%2FSTRONG%3E%20has%20the%20value%20%3CSTRONG%3E%25windir%25%5Csystem32%5Cinetsrv%5Cmetadata.dll%3C%2FSTRONG%3E%26nbsp%3B%20which%20was%20missing%3C%2FP%3E%0A%3CP%3E--I%20did%20%26nbsp%3Ba%20test%20on%20my%20machine%20by%20deleting%20%3CSTRONG%3EBA4E57F0-FAB6-11CF-9D1A-00AA00A70D51%7D%3C%2FSTRONG%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20from%20HKCR%20node%3C%2FP%3E%0A%3CP%3E--got%20the%20exact%20error%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ashfana_3-1625290332392.png%22%20style%3D%22width%3A%20642px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F293252i228787488C4EC242%2Fimage-dimensions%2F642x170%3Fv%3Dv2%22%20width%3D%22642%22%20height%3D%22170%22%20role%3D%22button%22%20title%3D%22ashfana_3-1625290332392.png%22%20alt%3D%22ashfana_3-1625290332392.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ESuch%20issues%20can%20come%20up%20after%20OS%20upgrade%2C%20while%20doing%20a%20registry%20restore%2Fbackup%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Co-Authors
Version history
Last update:
‎Jul 02 2021 10:33 PM
Updated by: