none
Unable to cast COM object of Office Interop Word RRS feed

  • Question

  • I got this error after update office from 2010 to 2013

    Here is the reference i used

    Here is the code

    Microsoft.Office.Interop.Word.Application appVersion = new Microsoft.Office.Interop.Word.Application();
    appVersion.Visible = false;

    and this is the error message:

    Unable to cast COM object of type 'Microsoft.Office.Interop.Word.ApplicationClass' to interface type 'Microsoft.Office.Interop.Word._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00020970-0000-0000-C000-000000000046}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

    I try to check {00020970-0000-0000-C000-000000000046} in registry but can't find anything.

    Please help. Thanks

    Monday, March 24, 2014 1:33 AM

Answers

  • Hi,

    >>Unable to cast COM object of type 'Microsoft.Office.Interop.Word.ApplicationClass' to interface type 'Microsoft.Office.Interop.Word._Application'.

    This problem is caused by incorrect COM Interop settings in the Windows registry. This can be caused by installing a newer version of Microsoft Office, and then removing it and installing an older version instead.

    You should check the version of registry key is 8.6 in:

    64bit Office:

    HKEY_CLASSES_ROOT\WOW6432Node\Interface\[00020970-0000-0000-C000-000000000046]\TypeLib

    32bit Office:

    HKEY_CLASSES_ROOT \Interface\[00020970-0000-0000-C000-000000000046]\TypeLib

    And the then browse to the registry key HKEY_CLASSES_ROOT\ WOW6432Node \TypeLib\[the TypeLib ID you just found].

    In this key, there should only be 1 subkey, and it should be the same as the Version value you found previously.If this key contains mutiple subkeys, you should remove it from registry.

    To resolve this problem, you can also repair Microsoft Office 2013. To do this, follow these steps:

    1. Click on your Start menu and open the Control Panel

    2. Click on Uninstall a Program (or Add/Remove programs in Windows XP)

    3. Locate the entry for Microsoft Office and click on it. After you click on it, you should see a button labeled Change appear either next to it, or at the top of the list (depending on what version of Windows you have). Click this Change button.

    4. Once Microsoft Office setup appears, choose the Repair option and click Next to have Microsoft Office repair itself. You may need to reboot your computer once this process is complete; Microsoft Office setup will tell you if you need to do this once it is done.

    Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    • Edited by Marvin_Guo Tuesday, March 25, 2014 9:36 AM
    • Marked as answer by Marvin_Guo Monday, March 31, 2014 12:01 PM
    Tuesday, March 25, 2014 9:35 AM

All replies

  • Hello,

    Did you select the .Net programmability support option in the installation wizard?

    Please try to re-add the Word reference:

    1. On the Project menu, click Add Reference.

    2. On the COM tab, locate Microsoft Word Object Library and then click Select. Look for Microsoft Word 15.0 Object Library on the COM tab.

    Monday, March 24, 2014 6:51 AM
  • yes, i add the reference just like you said. but it didn't work.
    Tuesday, March 25, 2014 1:18 AM
  • Hi,

    >>Unable to cast COM object of type 'Microsoft.Office.Interop.Word.ApplicationClass' to interface type 'Microsoft.Office.Interop.Word._Application'.

    This problem is caused by incorrect COM Interop settings in the Windows registry. This can be caused by installing a newer version of Microsoft Office, and then removing it and installing an older version instead.

    You should check the version of registry key is 8.6 in:

    64bit Office:

    HKEY_CLASSES_ROOT\WOW6432Node\Interface\[00020970-0000-0000-C000-000000000046]\TypeLib

    32bit Office:

    HKEY_CLASSES_ROOT \Interface\[00020970-0000-0000-C000-000000000046]\TypeLib

    And the then browse to the registry key HKEY_CLASSES_ROOT\ WOW6432Node \TypeLib\[the TypeLib ID you just found].

    In this key, there should only be 1 subkey, and it should be the same as the Version value you found previously.If this key contains mutiple subkeys, you should remove it from registry.

    To resolve this problem, you can also repair Microsoft Office 2013. To do this, follow these steps:

    1. Click on your Start menu and open the Control Panel

    2. Click on Uninstall a Program (or Add/Remove programs in Windows XP)

    3. Locate the entry for Microsoft Office and click on it. After you click on it, you should see a button labeled Change appear either next to it, or at the top of the list (depending on what version of Windows you have). Click this Change button.

    4. Once Microsoft Office setup appears, choose the Repair option and click Next to have Microsoft Office repair itself. You may need to reboot your computer once this process is complete; Microsoft Office setup will tell you if you need to do this once it is done.

    Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    • Edited by Marvin_Guo Tuesday, March 25, 2014 9:36 AM
    • Marked as answer by Marvin_Guo Monday, March 31, 2014 12:01 PM
    Tuesday, March 25, 2014 9:35 AM
  • Yes, it fix my issue. Thank you so much!
    Wednesday, March 26, 2014 3:10 AM
  • Great answer. Now I understand why I am having an issue with my translation software only when word docs are involved. When I went to fix it, however, it just told me that the repair wasn't successful. I don't have the installation CD. Is there anything else to be done?

    Best,

    J

    Thursday, February 25, 2016 11:53 PM
  • Does the 8.6 registry key apply only to Windows 8? Our office runs Windows 7 64 bit and I am able to locate these keys in the registry but I notice that they show 8.5. Thanks.
    Friday, March 4, 2016 11:52 PM
  • Thank you for a through explanation. This was enough information to still be useful three years later in Windows 10 with Office 365 ProPlus. Only the good answers keep working releases down the road.

    Gardoglee

    Friday, March 17, 2017 8:37 PM
  • I have 64-bits version installed but HKEY_CLASSES_ROOT\WOW6432Node\Interface\[00020970-0000-0000-C000-000000000046]\TypeLib is empty and repairing Office does not help, what else can it be done?
    Friday, July 28, 2017 8:14 PM
  • For 64bit, your registry key is  HKEY_CLASSES_ROOT\Interface\[00020970-0000-0000-C000-000000000046]\TypeLib 

    WOW6432Node does not apply.

    Friday, September 29, 2017 3:14 AM
  • I have been scouring the internet for a fix for my problem this worked perfectly. Thank you
    Wednesday, January 2, 2019 10:47 AM