[Unauthorized] Excel cannot use the DCOM permission of Excel with error 80070005

Source: Internet
Author: User
Tags asp net

FromHttp://hi.baidu.com/zfy0921/blog/item/dd0e1bc5ca6890c138db497a.html

 

 

Failed to retrieve components whose CLSID is {00024500-0000-0000-c000-000000000046} in the com class factory because of the following error: 80070005. The solution is as follows:

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: 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.

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 pop-up "security" dialog box, add a "newuser \ iusr_newuser" 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 a "newuser \ iusr_newuser" user and grant "local access" permission. in this way, we have configured the corresponding Excel DCOM permissions.

8: the "Security" label remains. Click "Custom" on the third "set permission limit", and then click "edit ", in the pop-up "security" dialog box, add the following Permissions

Administrators, System, all rights
Power Users, users fetch

Note: This is configured on win2003. On 2000, it may be because the ASP net user is configured to open the Excel file on the server. Therefore, you should write a file to save the exported data to the server, then pass the method to the client, and delete all the Excel files generated on the server each time you call this function.

 

 

Additional information

Http://hi.baidu.com/shaoxiaoming/blog/item/ae90e4f4e4d98ae77609d7d4.html

Http://kb.cnblogs.com/a/1439762/

Http://www.google.com.hk/search? Q = DCOM + Excel & HL = ZH-CN & newwindow = 1 & Safe = strict & RLS = ig & START = 10 & SA = N

Http://www.cnblogs.com/qxw0816/archive/2009/04/08/1431768.html

 

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.