Question one: Access Denied
There are three possibilities of denying access,
One is that the current operation user does not have access rights.
Two are processes that already have Excel.exe in the process and the program is not cleaned up in time.
Three of the specified Excel is being used by another process.
First kind of solution
Give the specified Excel folder The ASPNET permission, and then add a piece of code to the <system.web> in Web.config
<identity impersonate= "true" ></identity>
That's it!
The second type of solution See if there are any Excel.exe processes in Task Manager, if present please manually end the process, and then change the Excel code,
Let Excel automatically end the process after it is done.
The third type of solution This is the lowest mistake! I was using an Excel document, but I don't know! The program then accesses Excel and says no access!
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