Error working through virtual directory with Office Interop

I used the Office Inter op library to convert office documents to PDF. I get PDF well if I run Visual Studio, but I get the following error when working through a virtual directory.

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

Please answer if anyone has a solution.

+4
source share
1 answer

The Office Interop library you are referencing is not located on your server. You need:

1) Make sure the server has Office, as it is necessary for communication.

2) Copy the libraries you link to to the desired location on the server.

0
source

All Articles