Нет word в dcom

I am creating a simple asp.net web site that use office 2007/2010 automation .. when i published the website on the iis 7 on my local machine (window 7) have an exception

 Retrieving the COM class factory for component with CLSID 
 {000209FF-0000-0000-C000-000000000046} failed due to the following error: 
 80080005 Server execution failed (Exception from HRESULT: 0x80080005 
 (CO_E_SERVER_EXEC_FAILURE)).

I have searched for this exception and i found that i have to set some permissions to office in DCOM Config.

I have opened the component services and opened DCOM Config, but i have not found Microsoft Word Document i have found only office word 97 — 2003.

can any one tell me how to solve this problem.

asked Sep 6, 2012 at 12:22

Abdullah Darwish's user avatar

2

Found the answer here: DCOM Failure of Office Automation

If you are running a 64-bit server with 32-bit Office, you may have trouble finding this DCOM setting. You will need to run «MMC -32» from the command prompt to launch 32-bit MMC and then add ‘Component Services’ from the ‘File > Add / Remove Snap-ins’ menu.

Community's user avatar

answered Sep 26, 2012 at 1:53

bfhd's user avatar

0

Yes, office word 97 — 2003 is a right name of DCOM document (resp. application) Word 2007 or 2010. Don’t ask me why…

Where could be the trouble?

The user must have access to desktop. If Word is called from ASP.NET, it has probably not this access. So set in dcomcnfg.exe an account explicitly. Don’t use The launching user (it is a IIS identity, it hasn’t its own desktop) and don’t use The interactive user (it works only if some user is logged in).

In my solution I have set:

  • I have created new user (in user group), called WordUser
  • I have created in IIS new application pool with WordUser permission; Load User Profile must be true
  • DCOM I have set to use WordUser, on Security tab I’ve added WordUser wit Launch and activation Permission and Access Permission

Maybe another way is possible, but this should work.

answered May 10, 2013 at 11:19

Roman Plischke's user avatar

1

  • Remove From My Forums
  • Question

  • User232858574 posted

    Hi,

    I would like to config the Microsoft Word Application in DCOM for some function in my project.  So, I completely installed the Microsoft Office Professional Edition 2003 (32-bit version) in my server and go to the DCOM Config.  Actually,
    I can’t find the object «Microsoft Word Application» but the «Microsoft Excel Application» is here.

    I don’t know it should cause by the OS version or not.  The OS is using Microsoft Server 2003 R2 64-bit Edition with SP2.

    Do anyone have advise for me?

    Thanks.

RRS feed

  • Remove From My Forums
  • Вопрос

  • Hi All,

    Im facing an issue with my windows server 2008 r2, i have installed office 2016 which works fine opening all application. but when i need to configure in DCOM its missing only word application.  Can any please help me on this

Все ответы

  • Hi,

    Are you using the 64-bit version of DCOMCNFG.EXE? On x64 operating systems from Windows XP to Windows Server 2008, the 64-bit version of DCOMCNFG.EXE does not correctly configure 32-bit DCOM applications for remote activation. To correctly
    configure 32-bit DCOM applications for remote activation, follow these steps:

    From a command line, enter the following:

    C:WINDOWSSysWOW64>mmc comexp.msc /32

    You should be able to see «Microsoft Word Application» in the list. If the entry is still missing after taking this step, you can also try further steps in the following blog article:

    https://blogs.technet.microsoft.com/the_microsoft_excel_support_team_blog/2012/11/12/microsoft-excel-or-microsoft-word-does-not-appear-in-dcom-configuration-snap-in/

    Hope this helps.

    Regards,

    Steve Fan


    Please remember to mark the replies as an answers if they help and
    unmark
    them if they provide no help.
    If you have feedback for TechNet Subscriber Support, contact
    tnmff@microsoft.com.

    • Предложено в качестве ответа

      3 ноября 2017 г. 10:20

RRS feed

  • Remove From My Forums
  • Question

  • Hi All,

    Im facing an issue with my windows server 2008 r2, i have installed office 2016 which works fine opening all application. but when i need to configure in DCOM its missing only word application.  Can any please help me on this

All replies

  • Hi,

    Are you using the 64-bit version of DCOMCNFG.EXE? On x64 operating systems from Windows XP to Windows Server 2008, the 64-bit version of DCOMCNFG.EXE does not correctly configure 32-bit DCOM applications for remote activation. To correctly
    configure 32-bit DCOM applications for remote activation, follow these steps:

    From a command line, enter the following:

    C:WINDOWSSysWOW64>mmc comexp.msc /32

    You should be able to see «Microsoft Word Application» in the list. If the entry is still missing after taking this step, you can also try further steps in the following blog article:

    https://blogs.technet.microsoft.com/the_microsoft_excel_support_team_blog/2012/11/12/microsoft-excel-or-microsoft-word-does-not-appear-in-dcom-configuration-snap-in/

    Hope this helps.

    Regards,

    Steve Fan


    Please remember to mark the replies as an answers if they help and
    unmark
    them if they provide no help.
    If you have feedback for TechNet Subscriber Support, contact
    tnmff@microsoft.com.

    • Proposed as answer by

      Friday, November 3, 2017 10:20 AM

Я
   roman2

04.05.18 — 11:41

Доброго времени суток!

Помогите с проблемой.

Установил на Windows server 2012 Office 2016.

При попытке подключится на сервере к COMОбъект(«Word.Application») ошибка.

Нужно дать права в DCOM для компоненты Word для серверного юзера. Но беда в том, что в DCOM нет компоненты для Word. Для excel есть, для access есть, а для word нет.

Кто знает как быть?

   roman2

1 — 04.05.18 — 12:23

Я нашел решение.

Нужно установить все средства офиса.

После установки в дереве DCOM должен появится «Документ Microsoft Word 97–2003».

У него нужно добавить права для серверного юзера.

  

DrZombi

2 — 04.05.18 — 12:32

(1) спасибо :)

Понравилась статья? Поделить с друзьями:
  • Нет word windows 7 что делать
  • Нет vlookup в excel
  • Нет vba в excel 2019
  • Нет vba в excel 2007
  • Нет unique в excel