COMException (0x800A13E9) - Word interop services

后端 未结 4 1536
北恋
北恋 2021-01-05 01:59

I am getting this stacktrace:

System.Runtime.InteropServices.COMException (0x800A13E9): Word ðú÷ì ááòéä.
   at Microsoft.Office.Interop.Word.Documents.Add(         


        
4条回答
  •  忘掉有多难
    2021-01-05 02:11

    Sorry 'bout that 1MB reference... I just had to jump on that one.

    When automating Office Applications make sure, that you use a local account on the server with permissions for the Word COM+ object as well as the documents you are trying to work on.
    There are several posts relating to your problem pointing at the account issue:

    • ASP.NET 1.1 + 2003 Server + open Word document = InteropServices.COMException(0x800A13E9)
      • suggests that you should use an "interactive user" instead of the "launching user"
    • Error while calling MS-Word from ASP.NET
      • suggests creating a local user granting all permissions for the Word COM+ object

提交回复
热议问题