Component Services-> Computers-> My Computer-> DCOM configuration, locate the Identity tab, word-> properties, select Interactive User
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.
C # Calling Office component Access denied resolution (failed due to the following error:80070005 denied access)