Windows 2008 under C # calls Office component Access denied workaround (failed due to the following error:80070005 denied access)

Source: Internet
Author: User

Component Services-> Computers-> My Computer-> DCOM configuration, locate the Identity tab, word-> properties, select Interactive User

Note: (If an error occurs after unregistering the server "error:8000401a the system cannot start the server process because the configuration ID is incorrect. Please check the user name and secret ... "To change the interactive user to" the following user "and then enter the Administrator account password, the problem!!!! )

Security label, click on "Customize" on "Launch and Activation Permissions" and click on the corresponding "edit" button to add a "NETWORK SERVICE" user to the "Security" dialog box (note To select this computer name) and give it "local start" and " Local Activation permission.

"Security" tab, click "Customize" on "access rights", then click "Edit" to add a "NETWORK SERVICE" user to the "Security" dialog box, and then give "Local access" permission. This allows us to configure DCOM permissions for the corresponding Excel.

Office components are not found under 64-bit systems, workaround:

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.

Finally in the settings:

Check the settings of the IIS7, and finally determine that you also need to set the identity of the application pool, the AppPool of this site to be set to LocalSystem or NetworkService, problem resolution.

This problem will be solved

Reprint Address: http://www.cnblogs.com/lxiang/p/3268448.html

Reference Address: http://www.poluoluo.com/server/201310/243735.html

Windows 2008 under C # calls Office component Access denied workaround (failed due to the following error:80070005 denied access)

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.