How to solve the Excel operation permission in Asp.net

Source: Internet
Author: User
Solution to the Excel operation permission in Asp.net:
1. Use a simulated account and add it to the Web. config file.
<! Identity impersonate = "true" username = "Administrator" Password = ""/>
2. In the DCOM component service, grant the ASP. Net Operation permission to the Microsoft. Excel component. The procedure is as follows:
(1) Open the run dialog box of the Start Menu, enter the dcomcnfg command, and click OK. The component service window is displayed.
(2) expand computer> my computer> DCOM, and find the Microsoft Excel application. ProgramNode
(3) Right-click-> properties, select the "Security" option, select "Custom" for each of the following three projects, and click the edit button.
(4) Click the Add button in the launch permission dialog box to add the corresponding user (Note: if it is Win2000 or XP, add the "machine name/ASPnet" user, here, we use win2003 as an example. win2003 is used to add a "Network Service" user) and grant the maximum permission to the user.

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.