Because no document is opened, this command is invalid = the word operation problem

Source: Internet
Author: User

Problem description:

Asp.net operation word,
It's okay to release it to another Win 2000 Server,
Released to your portable Windows Server 2003 R2,
Debugging on the official server is okay,

When deployed to the official server, the following error occurs: system. runtime. interopservices. comexception (0x800a1098): The command is invalid because no document is opened"

The official server is win Server 2003 R2.

The specific operation is to open a word dot template, write data, and save it to a temporary file.

The COM component on the server is already open to all network service permissions, and related folders are also granted all network service permissions.

CodeIt won't be posted. It's okay on several machines and Debug on the official server. It should be okay.

How do I configure it?

 

Solution:

Resolved. Is a security issue for Windows Server 2003.
In the "Identity" option in DCOM of Microsoft Word document, set it to run as an administrator account.
The most strange thing is that no matter how advanced permissions are granted to the network service in DCOM.
In the same way as office, Excel DCOM does not have so many tricks.

 

Original article:

Http://topic.csdn.net/t/20061222/16/5249910.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.