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