. NET 80080005 Wrong solution sharing _ practical Tips

Source: Internet
Author: User
Some time ago in the company to do a document statistics page, you need to make a statistic of the number of pages in the Word file, but after the program has been written to run always error.
Retrieving a component with a CLSID of {00021a20-0000-0000-c000-000000000046} in the COM class factory failed because the following error occurred: 80080005
It took a long time to find out the problem. is a permissions issue for COM components.
1: Install the Office Word software on the server.
2: In the "Start"-> "Run" Enter Dcomcnfg.exe start "Component Services"
3: Double-click "Component Services"-> "Computer"-> "My Computer"-> "DCOM Configuration"
4: Locate the Microsoft Word 97-2003 document in the DCOM configuration, right-click on it, and then click Properties to eject the Microsoft Word 97-2003 Document Properties dialog box
5: Click on the "Logo" tab, select "Interactive User"
6: Click the "Security" tab and click "Customize" on "Start and Activate Permissions". Then click on the corresponding "edit" button, in the pop-up "Security" dialog box to fill in a "Network SERVICE" User (note to select this computer name), and give it "local startup" and "Local activation" Permissions.
7: Remain the "Security" tab, click "Customize" on "Access", then click "Edit", and add a "network SERVICE" user in the Pop-up Security dialog box, and give "local access" permission.
Note: In the XP system also add the "Add machine name/aspnet" user's above permissions.
In Window 2003 server, if a 8000401a error occurs, select the following user in the label to fill in the user who is logged on to the computer and has permission to local operations on word. Or select "Enable User" in the logo
The above method is provided by the Netizen, later or not, the final key lies in the direct use of the administrator, enter the administrator account and password, determined after finally accomplished

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.