Search for the CLSID in the com class factory? In the past, Asp.net was used to export an Excel file and passed the test on the local machine. However, if it was deployed on the server, the system prompts that the CLSID in the com class factory is? When the component fails, I found a lot of relevant content on the Internet, but I am not very clear about it. Most of them are plagiarism and I have not tried it myself. Today I have another project to do this, here is a summary of the features.
The following error occurs: IIS does not have the permission to call Excel com to set up. You can solve this problem by adding appropriate permissions. What administrator or everyone is mentioned on the Internet, this is too insecure. You can still do this on the LAN, but it is very vulnerable to attacks if you do not need it on the public network.
The specific solution is to set permissions.
1. EnterDcomcnfg.exe
2. Right-click the attribute
Iis_wpg; IUSR _; IWAM _
You must add all three permissions, if your web uses the default account.
Solve the problem thoroughly. download the file: excel question. Zip