This article introduces. NET 80080005 error solution, the need for friends can refer to, I hope it can help you
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