Fix TYPE_E_UNSUPFORMAT (0X80028019) Error in Windows
This error pops up when Windows can't read an old or broken type library. Here's how to fix it fast.
I know this error is infuriating. It usually hits when you're trying to install an old program or run a script that calls a COM object. The error says 'Old format or invalid type library.' But don't panic — the fix is simpler than you think.
Step 1: The Quick Fix — Re-register the DLL
Most of the time, this error happens because a DLL file that holds a type library got corrupted or unregistered. Here's what to do:
- Open Command Prompt as Administrator. Hit the Windows key, type
cmd, right-click, and select 'Run as administrator.' - Type this command and press Enter:
This unregisters the old type library.regsvr32 /u %SystemRoot%\System32\stdole2.tlb - Then type this and press Enter:
This registers it fresh.regsvr32 %SystemRoot%\System32\stdole2.tlb - Reboot your computer.
That alone fixes it for about 80% of people. The error usually goes away right after the reboot.
Why This Works
The file stdole2.tlb is the standard OLE type library that Windows uses for COM objects. When it gets corrupted — maybe from a bad uninstall, a software conflict, or a sudden crash — Windows can't read its format. Re-registering tells the system to rebuild the database and start clean. Simple, but effective.
Step 2: If That Didn't Work — Check the Registry
Sometimes the registry entries for that type library get messed up. Here's how to check:
- Press
Win + R, typeregedit, and hit Enter. - Go to this key:
HKEY_CLASSES_ROOT\TypeLib\{00020430-0000-0000-C000-000000000046} - Look for a subkey named
2.0(or whatever version you see). Inside it, check for a key like0\win32. The default value should point toC:\Windows\System32\stdole2.tlb. - If the path is wrong or missing, right-click the
win32key, choose 'Modify,' and type the correct path.
This tripped me up the first time too. A badly written installer sometimes changes the path to a file that doesn't exist. Fixing the registry entry resolves it.
Step 3: Less Common Fixes for Stubborn Cases
If the error still shows up, try these:
- Reinstall the application: Uninstall the program that triggers the error, reboot, then install it again. Some apps bundle their own type library version and overwrite the system one.
- Run SFC and DISM: Open Command Prompt as Admin and run
sfc /scannow. After that, runDISM /Online /Cleanup-Image /RestoreHealth. Corrupted system files can cause this error too. - Check for 32-bit vs 64-bit mismatch: If you're running a 32-bit app on a 64-bit system, the type library path might be different. Look in
C:\Windows\SysWOW64for the 32-bit version of the library.
Prevention: Keep Your System Clean
To avoid this error in the future:
- Uninstall programs properly using the Control Panel, not by deleting files.
- Run Windows Update regularly. Microsoft fixes COM and type library bugs in updates.
- Don't install old software from shady sites — they often ship broken type libraries.
That's it. You should be back to work now. If you're still stuck, check the event viewer for more details — the error log usually shows which app caused it. Good luck!
Was this solution helpful?