Failed to retrieve components whose CLSID is {00024500-0000-0000-c000-000000000046} in the com class factory because of the following error: 80070005
There are many feasible solutions:
Http://www.blogchinese.com/user1/53009/archives/2006/excel.shtml
The main points are:
1. Run dcomcnfg and find the applicationProgram, Set properties: Keep security as default and mark as interactive user
2. In the security field of the global tab in the default configuration, you must add the following users to access and start security:
System
Interactive
Everyone
Administrators
IUSR _ <machinename> *
IWAM _ <machinename> *
Experience:
1. In the DCOM configuration dialog box, click the Default Security tab.
2. In fact, there is no need to add so many users, as long as an ASPnet user is added, it is more secure.
3. Experiment on the local machine based on the principle of minimal open permissions, as long as you have local permissions for asp net development.
Supplement (10.5.12)
If none of them works, you can only change "Interactive User" to "Administrator.
Reference: http://www.cnblogs.com/andy1016/archive/2010/02/21/1670498.html