Because you use ASP. NET to manipulate Word, the Web page content is generated on the server after word is created for the user to download.
In the native test, everything is OK, when I publish to the server, the problem comes
1, Tip: Object references are not set to an instance of an object.
After the search, according to the online content began to toss, only to find that the problem is really annoying.
According to the user's post, cmd input "Dcomcnfg.exe",
, and did not appear in the post described word, the only thing that is this, after the various permissions set, or not (or maybe I set the wrong).
Suddenly think of the server environment when the 64-bit, while the development environment 32-bit, after the search found office is also divided into 32-bit and 64-bit (previously did not notice), simply uninstalled the 64-bit version, installed a
32-bit version, re-cmd input "Dcomcnfg.exe", or the same old, when browsing the post someone mentioned 32-bit input cmd input "comexp.msc-32", a try until the dawn
After Setup, the problem is resolved.
2. Retrieving the component of the CLSID {000209ff-0000-0000-c000-000000000046} in the COM class factory failed because the following error occurred: 8000401A The system cannot start the server process because the configuration identity is incorrect. Please check the user name and password. (Exception from hresult:0x8000401a).
Later found that as long as the interface is closed will prompt the error, open it no problem, do not know what the reason?
The identity is set to: LocalSystem
Workaround for ASP. NET operation after two problems encountered by word