Failed to retrieve components whose CLSID is {00024500-0000-0000-c000-000000000046} in COM class factory. 8000401a error Solution

Source: Internet
Author: User

Compile and generate an Excel fileProgramIn Windows 20003, a component named {000209ff-0000-0000-c000-000000000046} in the com class factory failed to be retrieved because of the following error: 8000401a. Error. "The main solution on the internet is:

1. http://support.microsoft.com/kb/288366

2,The solution is as follows:

1:Install the Excel software for office on the server.

2:In"Start"->"Run"Input dcomcnfg.exe to start"Component Service"

3:Double-click"Component Service"->"Computer"->"My computer"->"DCOMConfigure"

4:In"DCOMConfigure"."Microsoft ExcelApplication", Right-click it, and then click"Attribute", Pop-up"Microsoft ExcelYing

Application attributes"Dialog Box

5:Click"Identifier"Label, select"Interactive User"

6:Click"Security"Tag, in"Start and activate Permissions"Click"Custom"And then click the corresponding"Edit"Button."Security"Add in the dialog box

One"Network Service"User (note that you must select the computer name) and assign it"Start locally"And"Local activation"Permission.

7:Still yes"Security"Tag, in"Access permission"Click"Custom"And then click"Edit", In the pop-up"Security"Add one in the dialog box"Network

Service"User, and then grant"Local access"Permission.

In this way, we have configured the corresponding Excel DCOM permissions.

Note: This is configured on win2003. on 2000 and XP, It is configured as an ASPnet user.

Because Excel is opened on the server, you should write a method to save the exported data on the server and pass it to the client.

Use this function to delete all Excel files generated on the server.

----------

None of the above two methods will work for my results.

References:

Simply record my solution:

1. Create a user account and set the user to be a power user or user;

2. Run dcomcnfg. In the DCOM component, find the Microsoft Excel application or Microsoft Excel document-properties-icon and select "specific user ", then, enter the account and password created earlier;

3. Add a fulcrum <identity/> to the Web. config configuration file;

 

 

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.