Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)) on Windows 2008 R2 RRS feed

  • Question

  • I have windows service to invoke com+ to do all the image convertion functionality. The client application is getting the the following error while tried to dispose the com+ instance on Windows 2008 R2 enterprise OS. This Dispose of the COM+ object works fine in Windows 2003, windows 2008 std x64 bit etc.. This problem is specific to windows 2008 R2 enterprise only.

    Appreciate anyone's help regarding this issue. thanks!

    Error Msg:

    Unable to cast COM object of type 'System.__ComObject' to interface type 'System.IDisposable'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{805D7A98-D4AF-3F0F-967F-E5CF45312D2C}' failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).

    Found the Solution. The registry with IID is complaining  805D7A98-D4AF-3F0F-967F-E5CF45312D2C has version has 2.0 but the version the typelib it is refererencing is loading 2.4 at runtime and by changing verion it worked fine. or if you reinstall .net framework it should work fine.

    • Moved by Paul Zhou Monday, April 25, 2011 11:56 AM off-topic (From:64-Bit .NET Framework Development.)
    • Edited by Sunil Yeruva Wednesday, April 27, 2011 2:00 PM
    Thursday, April 21, 2011 2:38 PM

All replies


    Hi Sunil,


    Welcome to the MSDN forum!


    It seems that the issue is related .NET Framework 3.5 SP1 setup in different OS. I suggest that you can post thread in .NET Framework Setup Forum.


    Moreover, I'd like to move this thread to off-topic because the problem is not supported in this forum.


    Thank you for your posting and understanding.

    Have a nice day!

    Paul Zhou [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, April 25, 2011 11:55 AM