Workaround for ASP. NET operation after two problems encountered by word

Source: Internet
Author: User

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

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.