Solution: add the ASP. NET permission to access the COM component service.
{MACHINE} \ ASPnet on IIS 5
IIS 6 and IIS 7 serve the network: NETWORK SERVICE
Application configured for IIS 7.5ProgramPool ID:IIS apppool \{Application pool}
Solution steps (Win8,Iis8For example)
1. "Control Panel-> management tools-> component services" Open component services
2. Modify the location
3. Add the start and activation permissions
(1) The following describes how to add a network service.
(2) The following describes how to add an application pool.
The application pool of the website is added here.
IIS apppool \ classic. Net apppool
4. Add Access Permissions
5. Modify the ID
Note:
If an access error is reported without remotely logging on to the server, it is because an interactive user is used. When this option is selected, the server must have a user to log on. This is not realistic. We recommend that you specify a user.