Failed to retrieve components whose CLSID is {00024500-0000-0000-C000-000000000046} in the COM class factory. com component clsid
Failed to retrieve components whose CLSID is {00024500-0000-0000-C000-000000000046} in COM class factory
When exporting data to an Excel file in the project, the following error occurs: 80070005 when the component whose CLSID is {00024500-0000-0000-C000-000000000046} in the COM class factory is retrieved ", I searched the internet for the following solutions:
1: Install the Excel software for office on the server.
2: Enter dcomcnfg.exe in "start"-> "run" to start "Component Service"
3: Double-click "component service"> "computer"> "my computer"> "DCOM configuration"
4. In "DCOM configuration", find "Microsoft Excel application", right-click it, and click "properties". The "Microsoft Excel application properties" dialog box is displayed.
5. Click the "ID" tab and select "Interactive User"
6. Click the "Security" tab, click "Custom" on "Start and activate Permissions", and then click the corresponding "edit" button. In the displayed "security" dialog box, enter
A "ASP.net" user (note that you must select the computer name), and grant it the "local start" and "Local activation" permissions.
7: the "Security" label remains. Click "Custom" on "Access Permissions", and then click "edit ", in the pop-up "security" dialog box, add an "ASP.net" user and grant the "local access" permission.
In this way, we have configured the corresponding Excel DCOM permissions.
Note: This is configured on WINxp. On 2003, The ASP.net user is changed to the network service user.
According to the above operation, the result is still this error. Then, in the component service, the "Microsoft Office Excel previewer" is configured again to solve the problem. The configuration process is as follows:
1. Find "Microsoft Office Excel preview" in "DCOM configuration", right-click it, and then click "properties". The "Microsoft Office Excel preview properties" dialog box is displayed.
2. Click the "Security" tab, click "Custom" on "Start and activate Permissions", and then click the corresponding "edit" button. In the displayed "security" dialog box, enter