Recently doing a project, need to browse the Word document on the Web page, to find an example online, but called the word component times this error:
Failed to retrieve component with CLSID {000209ff-0000-0000-c000-000000000046} in COM class factory
Find a solution on the Internet, you need to add a configuration item in the Webconfig, and then you need to add the user to the rights management of the Microsoft-word service in the component service.
Then it can be used normally.
It was nothing, but the configuration items inside the webconfig need to expose the user name and password of the machine. It's not always safe.
I summed up the various methods on the Internet, after trying to find, do not need to add configuration items can also. The steps are as follows:
1, Control Panel-"Management tools-" Component Services-"computer-" My Computer-"DCOM configuration-" found Microsoft word97-2003 documentation
2. Right-click Properties to open the Properties dialog box for this application.
3. Click the Security tab, select custom in the launch and activation permissions and access permissions groups, and then add the Everyone user, edit- and assign all permissions to the Everyone user.
4. Click the Identity tab to select the Interactive user
5. Click OK to close the DCOMCNFG
Then you can, the key is to add the Everyone account in the third step, to manually assign so permissions, I was just because the account was added, not assigned to the ownership limit, so it cannot be used.
Failed to retrieve component with CLSID {000209ff-0000-0000-c000-000000000046} in COM class factory