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.