Jump to content
Xtreme .Net Talk

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


Recommended Posts

Posted

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 ??!!!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...