CLSID component COM class factory recovery failure

Asked

Viewed 11,725 times

14

I have developed an application on my pc that does the following: from an upload of a word document, it generates a new document with some basic information. To generate this information, it opens the template document, locates a tag that exists in this template and replaces it with the content referring to each tag (3 in total). On my pc worked perfectly, however, when I passed to the server, it gets the following image error.

inserir a descrição da imagem aqui

Detail: below Cell Trace there is a line that shows the path of my pc project, even though the application is on another computer.

Error text:

Factory recovery failure of COM class component with CLSID {000209FF-0000-0000-C000-000000000046} due to the following error: 80070005 Access denied. (Exception of HRESULT: 0x80070005 (E_ACCESSDENIED)).

Factory recovery failure of COM class component with CLSID {000209FF-0000-0000-C000-000000000046} due to the following error: 80070005 Access denied. (Exception of HRESULT: 0x80070005 (E_ACCESSDENIED)).

Description: An untreated exception occurred during the execution of the current web request. Examine stack tracking for more information about the error and where it originated in the code.

Exception Details: System.Unauthorizedaccessexception: Failure to recover factory COM class of component with CLSID {000209FF-0000-0000-C000-000000000046} due to the following error: 80070005 Access denied. (Exception of HRESULT: 0x80070005 (E_ACCESSDENIED)).

ASP.NET is not authorized to access the requested resource. It is recommended to grant ASP.NET’s request identity access rights to the resource. ASP.NET has a base-process identity (usually {MACHINE} ASPNET in IIS 5 or Network Service in IIS 6 and IIS 7, and the application pool identity configured in IIS 7.5) that is used if the application is not being represented. If the application is being represented through, the identity will be the anonymous user (usually IUSR_MACHINENAME) or the authenticated request user.

To Grant ASP.NET access to a file, right-click the file in File Explorer, Choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET Account, and check the boxes for the desired access.

  • It was after the upload. I solved this problem by putting the appropriate permissions in SERVICES and Components. It was a lot of work as I had other permissions. It was the Word DLL. @Randrade

1 answer

7

Errors similar to this may occur due to following factors:

  • Missing Dlls not registered on the server
  • Not having Office installed on the server.
  • The Office installed is 32bit and the 64bit server

However, if you are sure that everything is correct, you must have stopped configuring something on the server according to these answers from Soen:

As the older answer, follow the following steps:

  • In cmd or Win+r typhoon:

    DCOMCNFG
    
  • If your server is in English:

    • Abra Root Console > Component Service > Computers

    • Right-click the mouse (mouse) My Computer and select Properties

    • Go to the tab WITH Security > Launch and Activation Permissions and click on Edit Default

  • If your server is in English:

    • Abra Root of control > Component services > Compuradores

    • Right-click the mouse (mouse) My computer and select Estates

  • Go to the tab SECURITY WITH > Boot and Activation permissions and click on Edit Pattern...

  • Click the button Add (Add if you are English) and type in the text field IIS_IUSRS for example or add a service, should look something like:

    inserir a descrição da imagem aqui

    1. Note: THE IIS_IUSRS is a group of IIS users

    2. Note: In Windows server 2003 the group is IIS_WPG

  • Click Ok, but don’t close the next screen

  • In this left window mark the options, as in the image:

    inserir a descrição da imagem aqui

  • Then just click OK on the following windows and close what you need, so it should work.

I’m editing the question because I’m still testing


According to the most recent reply:

Apparently as these steps will release access only to the COM of the specific desired, however be careful, do only what is requested here:

  • In cmd or Win+r typhoon:

    DCOMCNFG
    
  • If your server is in English:

    • Abra Root Console > Component Service > Computers > DCOM Config
  • If your server is in English:

    • Abra Root of control > Component services > Compuradores > Config DCOM
  • Look for the component for example Microsoft Word 97 - 2003 Document and right-click (mouse) and go into properties, for example:

    inserir a descrição da imagem aqui

    If the desired component is not listed it is because you have the x86 version of Office and your operating system is 64bit, or because you do not have the office installed or the components properly registered

  • Go to the tab Security

  • In the areas Boot and Activation permissions and Access permit add user IIS_IUSRS and permissions.

  • Then click on OK

Browser other questions tagged

You are not signed in. Login or sign up in order to post.