LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default TYPE_E_LIBNOTREGISTERED Exception in MS Excel.

Hi All,
I was trying to Automate MS Excel through C#. Everything works fine
until in the development machine(it has VS2005 with Excel 2003 in Vista)
when I deployed my code in a non-development machine(Excel 2003 with XP)
following exception has been thrown.



"Unable to cast COM object of type 'System.__ComObject' to interface type
'Microsoft.Office.Interop.Excel._Application'. 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))."


a. I ve already tried Installlating Office 2003 PIA's.
b. Repaired Office 2003 also.

My Excel references in workspace points to Library in GAC, and "CopyLocal"
property has been set to false.


any workaround to resolve this would be greatly appreciated.


Sample code snippet.
Excel._Application m_oApplication;
Excel.Workbooks m_oWorkBooks;


try-catch
//
m_oApplication = new Excel.Application();
m_oWorkBooks = (Excel.Workbooks)m_oApplication.Workbooks;


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exception from HRESULT: 0x800A03EC - COM Exception Unhandled Karthizen[_2_] Excel Programming 3 March 16th 09 09:54 PM
exception in excel while writting to it Gaurav[_7_] Excel Programming 3 January 9th 08 11:36 AM
exception 0x800A03EC in excel Joao Mossmann Excel Programming 1 October 25th 07 07:12 PM
Exception report in excel jj Excel Worksheet Functions 5 March 2nd 05 05:05 PM
Excel exception problem Chuck Ainslie Excel Programming 0 June 4th 04 09:01 PM


All times are GMT +1. The time now is 11:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"