[Solved] Retrieving the COM class factory for component with failed due to the following error: 80080005 Server execution failed

mahesh213
 
on Dec 16, 2021 01:23 AM
6498 Views

Hi,

Below code is working locally

Convert Microsoft Office Document (Word) to PDF using C# and VB.Net in ASP.Net

after publishing in iis getting error like below

Retrieving the COM class factory for component with failed due to the following error: 80080005 Server execution failed

can you please help me

Download FREE API for Word, Excel and PDF in ASP.Net: Download
dharmendr
 
on Dec 16, 2021 02:16 AM

Hi mahesh213,

Follow below steps:

  1. Click Start, click Run, type regedit, and then click OK.

  2. In Registry Editor, locate the following registry subkey:

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\SubSystems

    By default, the Windows entry in the subkey has a value that is similar to the following (all on one line):

    %SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows SharedSection=1024,3072 Windows=On SubSystemType=Windows ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3 ServerDll=winsrv:ConServerDllInitialization,2 ProfileControl=Off MaxRequestThreads=16

  3. Right-click the Windows entry, and then click Modify. The Edit String dialog box appears.

  4. In the Value data box, locate SharedSection, add 512 to SharedSection, and then click OK.

    The newly changed Windows entry reads as follows:

    %SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows SharedSection=1024,3072,512 Windows=On SubSystemType=Windows ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3 ServerDll=winsrv:ConServerDllInitialization,2 ProfileControl=Off MaxRequestThreads=16

For more details on the error refer below link.

server execution failed