Error con la libreria interop.word.dll CLSID {000209FF-0000-0000-C000-000000000046}

 Thank to: https://es.stackoverflow.com/

Tengo el siguiente error al usar la librería interop.word.dll:

UnauthorizedAccessException]: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))


RESPUESTA:

The following worked for me for an access denied error with the same library: From Run (Win + R) place DCOMCNFG (which opens the Component Services interface) and then perform these steps: 1) Then go to Console Root > Component Services > Computers, right click on My Computer, and select Properties. 2) Then in the COM Security > Startup and Activation Permissions tab, choose "Edit Defaults". 3) Add the user with which the application is executed, for example if you use asp.net hosted in IIS, you add the user IIS_IUSRS or the service with which it is executed. 4) And finally in the permissions, check local execution and local activation. With this I had no more access denied problems with Office libraries. Greetings!

Comentarios

Entradas populares de este blog

Guía de herramientas básicas para estudiantes: 31 apps y webs imprescindibles para ayudarte con los estudios

Comando FOR para archivos BAT

How to Setup and Configure Your Own GitLab Server on Ubuntu 20.04