Error while using Microsoft.Office.Interop.Word in Production.
-
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
-
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
Ramkumar_S wrote:
Office is already installed in my machine.
But not on the production server.
-
Ramkumar_S wrote:
Office is already installed in my machine.
But not on the production server.
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