Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Error while using Microsoft.Office.Interop.Word in Production.

Error while using Microsoft.Office.Interop.Word in Production.

Scheduled Pinned Locked Moved ASP.NET
comcsharpvisual-studiosysadmindata-structures
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ramkumar_S
    wrote on last edited by
    #1

    Hi All, I Am using Microsoft.Office.Interop.Word.Application word = new Microsoft.Office.Interop.Word.Application(); Microsoft.Office.Interop.Word.Document doc = new Microsoft.Office.Interop.Word.Document(); In Visual studio 2010(Framework 4.0) I created application which finds and replace text in word document. This works in my developement machine but in production I am getting below error Office is already installed in my machine. ERROR: Retrieving the COM class factory for component with CLSID {00020906-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)). 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.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {00020906-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)). Ramkumar ("When you build bridges you can keep crossing them. ") http://ramkumarishere.blogspot.com

    B 1 Reply Last reply
    0
    • R Ramkumar_S

      Hi All, I Am using Microsoft.Office.Interop.Word.Application word = new Microsoft.Office.Interop.Word.Application(); Microsoft.Office.Interop.Word.Document doc = new Microsoft.Office.Interop.Word.Document(); In Visual studio 2010(Framework 4.0) I created application which finds and replace text in word document. This works in my developement machine but in production I am getting below error Office is already installed in my machine. ERROR: Retrieving the COM class factory for component with CLSID {00020906-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)). 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.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {00020906-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)). Ramkumar ("When you build bridges you can keep crossing them. ") http://ramkumarishere.blogspot.com

      B Offline
      B Offline
      Bernhard Hiller
      wrote on last edited by
      #2

      Ramkumar_S wrote:

      Office is already installed in my machine.

      But not on the production server.

      R 1 Reply Last reply
      0
      • B Bernhard Hiller

        Ramkumar_S wrote:

        Office is already installed in my machine.

        But not on the production server.

        R Offline
        R Offline
        Ramkumar_S
        wrote on last edited by
        #3

        Even in my Production server ..Officee is Installed. Thanks for your response Ramkumar ("When you build bridges you can keep crossing them. ") http://ramkumarishere.blogspot.com

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups