Error 0x8002801D : Library not registered

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ritesh.singhal@gmail.com

    Error 0x8002801D : Library not registered

    Hi,

    I am trying to do server side office automation. I have a word template
    which I am trying to populate with data from SQL server but when I try
    to generate the Word document I get following error:

    Unable to cast COM object of type 'Word.Applicati onClass' to interface
    type 'Word._Applicat ion'. This operation failed because the
    QueryInterface call on the COM component for the interface with IID
    '{00020970-0000-0000-C000-000000000046}' failed due to the following
    error: Library not registered. (Exception from HRESULT: 0x8002801D
    (TYPE_E_LIBNOTR EGISTERED)).
    Description: An unhandled exception occurred during the execution of
    the current web request. Please review the stack trace for more
    information about the error and where it originated in the code.

    Exception Details: System.InvalidC astException: Unable to cast COM
    object of type 'Word.Applicati onClass' to interface type
    'Word._Applicat ion'. This operation failed because the QueryInterface
    call on the COM component for the interface with IID
    '{00020970-0000-0000-C000-000000000046}' failed due to the following
    error: Library not registered. (Exception from HRESULT: 0x8002801D
    (TYPE_E_LIBNOTR EGISTERED)).

    This works fine on my test machine, but when I try to run the same
    application on my production server I get above error. Please help if
    you have any idea.

    Thanks in advance.

    Ritesh

Working...