An error occurred while retrieving components whose CLSID is {00024500-0000-0000-c000-000000000046} in the com class factory in 64-bit Windows 7.

Source: Internet
Author: User

The work machine is equipped with 64-bit Windows 7, which is connected to the company's accounting system. In case of several problems, SQL2000 cannot be installed, and vs2005 must upgrade the patch .. Finally, install the components office2007, vs2005 SP1, sql2005, and framework2.0. The Microsoft. Office. InterOP. Excel component is required for the accoutning system, and the problem occurs exactly here. An error occurred while uploading the Excel document: the CLSID in the search com class factory is {00024500-0000-0000-c000-0

The work machine is equipped with 64-bit Windows 7, which is connected to the company's accounting system. In case of several problems, SQL2000 cannot be installed, and vs2005 must upgrade the patch .. Finally, install the components office2007, vs2005 SP1, sql2005, and framework2.0. The Microsoft. Office. InterOP. Excel component is required for the accoutning system, and the problem occurs exactly here. An error occurred while uploading the Excel document: retrieving components whose CLSID is {00024500-0000-0000-c000-000000000046} in the com class factory failed. Numerous solutions for online reading:
Common version steps:
1. Enter dcomcnfg.exe in "start"-> "run" to start "Component Service"

2. Double-click "component service"> "computer"> "my computer"> "DCOM configuration"

3. Find the Microsoft Excel application in "DCOM configuration ".Program", Right-click it, and then click" properties ". The" Microsoft Excel application properties "dialog box is displayed.

4. Click the "ID" tab and select "Interactive User"

5. click the "Security" tab, click "Custom" on "Start and activate Permissions", and then click the corresponding "edit" button, in the pop-up "security" dialog box, add a "Network Service" user (note that you must select the computer name) and grant it the "local start" and "Local activation" permissions.

6. still "security" label, click "Custom" on "Access Permissions", and then click "edit ", in the pop-up "security" dialog box, add a "Network Service" user and grant "local access" permission.

The problem lies in the 64-bit version of the machine, because after opening dcomcnfg, the item "Microsoft Excel application" cannot be found, because dcomcnfg is a 32-bit configuration, it can be fully supported in a 64-bit system.

You can see how to enable the 32-bit dcomcnfg:

1. Run: MMC-32

2. Open "file"-"add or delete management units"-select component services-click "add"-OK.

3. You can find Microsoft Excel application in the DCOM component.

As a result, the configuration is completed in the top way, and the website is run, the same error occurs.

Check again. The settings are still not completed.

Check iis7 settings, and finally confirm that the application pool ID needs to be set. Set the apppool ID of the website to LocalSystem or NetworkService. The problem is solved.

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.