locked
Error Message:Retrieving the COM class factory for component with CLSID RRS feed

  • Question

  • User-785718234 posted

    i am getting error "Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005."

    in the code

    Microsoft.Office.Interorp.WordApplicationClass wordApp=
    new
    Microsoft.Office.Interorp.WordApplicationClass();


    It is working fine in local machine,but not working in remote machine.

    i had given full control for ASPNET machine
    account,users , Internet guest account,network,Administrator,system.

    Any other permission i need to give.....

    Thanks in Advance

    Wednesday, April 1, 2009 1:53 AM

All replies

  • User-1557807525 posted

    Have you installed the Word Application in Remote Server. If you didn't install the Word in the server you will have this issue

    Wednesday, April 1, 2009 2:46 AM
  • User-785718234 posted

    Hi friends,

    If i intergrate my application in iis server,it does not work and shows the error. If i execute my application by F5 key or run icon,it execute fine.

    Thanks in Advance

    Thursday, April 2, 2009 3:16 AM
  • User-1557807525 posted

    Are you trying to execute the application in iis server. If you tried you might had the issue in that as well. Basically you required word need to be installed to run the Word Application

    Thursday, April 2, 2009 3:44 AM
  • User-1241173581 posted

    Vidhyashri,

    If the remote machine is on windows 2003 and if impersonation is not enabled for your asp.net application, than give the permissions to network service account.

    The best way to handle this is to

    • Create automation user account on remote machine.
    • Give admin/sufficient privileges to the account.
    • Give access permission to users for word using DCOMCNFG.
    • Login as automation user and open word once on remote server to complete the registry entries.
    • use <Identity impersonate = true username = automation user password = automation user> for your web application

     

    Monday, April 6, 2009 10:30 AM
  • User-1285090017 posted

    i am getting error "Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005."

    in the code

    Microsoft.Office.Interorp.WordApplicationClass wordApp=
    new
    Microsoft.Office.Interorp.WordApplicationClass();


    It is working fine in local machine,but not working in remote machine.

    i had given full control for ASPNET machine
    account,users , Internet guest account,network,Administrator,system.

    Any other permission i need to give.....

    Thanks in Advance

    What O/S is the server?

    if it is XP you can follow the link:

    http://blog.crowe.co.nz/archive/2006/03/02/589.aspx

    if its win2k then steps are defferent.

     

     

    Tuesday, April 7, 2009 6:51 AM