Hi,
I m trying to automate Excel thru C#.net, having vs2005 and Excel 2003. when i deployed the s/w in a different m/c. It throws me the following Error message.

"This operation failed because the QueryInterface call on the COM component for the interface with IID '{000208D5-0000-0000-C000-000000000046}' failed due to the following error: Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)). "

I have already tried to register by using
""C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\regasm.exe" Microsoft.Office.Interop.Excel.dll "
no luck


any help would be greatly appreciated.

Recommended Answers

All 3 Replies

Does it have the same version of excel installed?

Yes, Same Version of Excel is Installed.

Googling the error code "000208D5-0000-0000-C000-000000000046" turned up the same responses everywhere. It appears if at any point you have two different versions of the PIA installed it causes a problem. Did you, or do you, have the 2007 & 2003 PIA's installed?

Here is an article on how somebody manually cleaned up the references left after uninstalling a PIA:
http://social.msdn.microsoft.com/Forums/en-US/vbinterop/thread/6b793878-d94a-4a62-8817-dea1cab79377/

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.