Resolved under Windows7 64 bit: Failed to retrieve the component whose CLSID is {00024500-0000-0000-C000-000000000046} in the COM class factory

The working machine is installed with Windows7 64bit, and the original company's Accounting system is used. There are several problems. SQL2000 cannot be installed, and VS2005 needs to be upgraded with patches, and so on.

  Finally install the components Office2007, VS2005 SP1, SQL2005, FrameWork2.0.

  The Accoutning system needs to use the Microsoft.Office.Interop.Excel component, and the problem is precisely here.

  Encountered error uploading Excel document: Failed to retrieve component with CLSID {00024500-0000-0000-C000-000000000046} in COM class factory.

  Read countless solutions online:

  Normal version steps

  1. Enter dcomcnfg.exe in "Start" -> "Run" to start "Component Services"

  2. Double-click "Component Services"->"Computer"->"My Computer"->"DCOM Configuration"

  3. Find "Microsoft Excel Application" in "DCOM Configuration", right-click on it, and then click "Properties" to pop up the "Microsoft Excel Application Properties" dialog box

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

  5. Click the "Security" tab, click "Customize" on "Startup and Activation Permissions", then click the corresponding "Edit" button, and add a "NETWORK SERVICE" user in the pop-up "Security" dialog box ( Note to select this computer name), and give it "local launch" and "local activation" permissions

  6. Still on the "Security" tab, click "Custom" on "Access Permissions", then click "Edit", and add a "NETWORK SERVICE" user in the pop-up "Security" dialog box, and then assign " 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 under a 64-bit system, so it just hangs.

  So I looked up the way to open 32-bit DCOMCNFG:

  1. Run: mmc -32

  2. Open "File" - "Add or Remove Snap-in" - select Component Services - click Add - OK.

  3. Microsoft Excel Application can be found in the DCOM component.

 

  So the configuration is completed in the top way, and the same error occurs when running the website.

  Check again, there is still content that has not been set up.

  Check the settings of IIS7, and finally determine that the identity of the application pool needs to be set, and the identity of the AppPool of this website should be set to LocalSystem or NetworkService, and the problem is solved.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325782424&siteId=291194637