Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Retrieving the COM class factory for component with CLSID failed due to the following error: 80070005 Access is denied

I have an asp.net hosted in IIS. that uses the Com library "Microsoft Word 14.0 Object Library". I am using this to convert the word Document to HTML, on my machine it works. I have Office 2007 on my machine. but when i try to run my app on the server it gives me the Following error

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)).

i have given all the permissions to the aspnet user and other users full access but this does not work,

like image 751
Shiva Roy Avatar asked Jan 14 '15 06:01

Shiva Roy


1 Answers

  1. From the Start menu, click Run and type Dcomcnfg.exe.
  2. In Component Services, click Console root, expand Component Services, expand Computers, expand My computer,expand DCOMConfig.
  3. Search for Microsoft Word 14.0 Object Library. Click on it.
  4. Right click and select Properties.
  5. On security tab, select Customize in "Launch and Activation" section.
  6. Click edit and add identity of app pool under which you application is running.
  7. Repeat above step for "Access Permission"
like image 118
Pankaj Kapare Avatar answered Oct 14 '22 02:10

Pankaj Kapare