Error: HttpException (0x80004005):
Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed
Case: Automation of word document in ASP.Net works fine when in debug mode but when published, generates COM Class error.
1. in your web.config
<system.web>
...
<identity impersonate="true" userName="allowedUserName.domain" password="thePassword"></identity>
</system.web>
2. in dcomcnfg
Component Service -> My computer -> DCOM Config
find MSWord Process, then set
Security -> Launch And Activation Permissions, etc as "Customize". Add user "allowedUserName.domain" with the following permissions: local launch = allow, local activation = allow
Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed
Case: Automation of word document in ASP.Net works fine when in debug mode but when published, generates COM Class error.
1. in your web.config
<system.web>
...
<identity impersonate="true" userName="allowedUserName.domain" password="thePassword"></identity>
</system.web>
2. in dcomcnfg
Component Service -> My computer -> DCOM Config
find MSWord Process, then set
Security -> Launch And Activation Permissions, etc as "Customize". Add user "allowedUserName.domain" with the following permissions: local launch = allow, local activation = allow