Exception Details: System.Runtime.InteropServices.COMException: Command failed

mschua44

Newcomer
Joined
Nov 28, 2009
Messages
1
Hi,

I make an asp.net project dealing with Microsoft.Office.Interop.Word.
It is working fine while running on VStudio 2005 Development Server.

But when I switch it to Win Server 2003, I get the following error :


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: Command failed

Source Error:
Line 24: objWordApp.Visible = True 'IIf(chkShowWord.Checked, True, False)
Line 25: 'Open an existing document.
Line 26: objWordApp.Documents.Open("C:\Sample.doc")
Line 27: objDoc = objWordApp.ActiveDocument

Can somone please help ??!!!
 
Back
Top