locked
Unable to load Microsoft.Office.Interop.Outlook on one PC RRS feed

  • Question

  • In our addin we reference Interop version 11.0.0.0 because we support Outlook starting version 2003. When newer version of Office is installed there is a policy file in GAC which redirects the version 11.0.0.0 to correct one.

    Currently we have an issue with this on one PC where Office 365 is installed.

    I have checked fuslog and there is a strange record. It tries to load policy file from C:\Program Files\WindowsApps\Microsoft.Office.Desktop_16051.11425.20202.0_x86__8wekyb3d8bbwe\VFS\Windows\assembly\GAC_MSIL\Policy.11.0.Microsoft.Office.Interop.Outlook\15.0.0.0__71E9BCE111E9429C\Policy.11.0.Microsoft.Office.Interop.Outlook.config

    But there is no such app in Store. I have checked the contents of the WindowsApps directory and there is even no folder Microsoft.Office.Desktop_16051.11425.20202.0_x86__8wekyb3d8bbwe.

    Based on what tries .NET use such policy file?

    Policy file on usual location C:\WINDOWS\assembly\GAC_MSIL\Policy.11.0.Microsoft.Office.Interop.Outlook\15.0.0.0__71e9bce111e9429c\Policy.11.0.Microsoft.Office.Interop.Outlook.config also exists but is not used.

    Below is complete fuslog (in Czech):

    LOG: Tato vazba začíná v kontextu načtení LoadFrom. WRN: Nativní obrázek nebude zjišťován v kontextu LoadFrom. Nativní obrázky jsou zjišťovány pouze ve výchozím kontextu načtení, například v kontextu Assembly.Load(). LOG: Nebyl nalezen konfigurační soubor aplikace. LOG: Je používán konfigurační soubor hostitele: LOG: Je používán konfigurační soubor počítače z C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config. LOG: Soubor zásad vydavatele byl nalezen v C:\Program Files\WindowsApps\Microsoft.Office.Desktop_16051.11425.20202.0_x86__8wekyb3d8bbwe\VFS\Windows\assembly\GAC_MSIL\Policy.11.0.Microsoft.Office.Interop.Outlook\15.0.0.0__71E9BCE111E9429C\Policy.11.0.Microsoft.Office.Interop.Outlook.config. WRN: Při analýze souboru XML C:\Program Files\WindowsApps\Microsoft.Office.Desktop_16051.11425.20202.0_x86__8wekyb3d8bbwe\VFS\Windows\assembly\GAC_MSIL\Policy.11.0.Microsoft.Office.Interop.Outlook\15.0.0.0__71E9BCE111E9429C\Policy.11.0.Microsoft.Office.Interop.Outlook.config došlo k chybě. Bude ignorováno. LOG: Odkaz po zpracování zásad: Microsoft.Office.Interop.Outlook, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c LOG: Vyhledávání v mezipaměti GAC nebylo úspěšné. LOG: Pokus o stažení nové adresy URL file:///C:/Program Files (x86)/Microsoft Office/root/Office16/Microsoft.Office.Interop.Outlook.DLL LOG: Pokus o stažení nové adresy URL file:///C:/Program Files (x86)/Microsoft Office/root/Office16/Microsoft.Office.Interop.Outlook/Microsoft.Office.Interop.Outlook.DLL LOG: Pokus o stažení nové adresy URL file:///C:/Program Files (x86)/Microsoft Office/root/Office16/Microsoft.Office.Interop.Outlook.EXE LOG: Pokus o stažení nové adresy URL file:///C:/Program Files (x86)/Microsoft Office/root/Office16/Microsoft.Office.Interop.Outlook/Microsoft.Office.Interop.Outlook.EXE LOG: Pokus o stažení nové adresy URL file:///C:/Program Files (x86)/eWay-CRM/Microsoft.Office.Interop.Outlook.DLL LOG: Pokus o stažení nové adresy URL file:///C:/Program Files (x86)/eWay-CRM/Microsoft.Office.Interop.Outlook/Microsoft.Office.Interop.Outlook.DLL LOG: Pokus o stažení nové adresy URL file:///C:/Program Files (x86)/eWay-CRM/Microsoft.Office.Interop.Outlook.EXE LOG: Pokus o stažení nové adresy URL file:///C:/Program Files (x86)/eWay-CRM/Microsoft.Office.Interop.Outlook/Microsoft.Office.Interop.Outlook.EXE LOG: Všechny adresy URL zjišťování byly použity, ale operace se nezdařila.

    Tuesday, May 7, 2019 9:12 AM

All replies

  • Hi Roman Štefko,

    Thank you for posting here.

    For you question is more related to office, you could post a new thread in office forum.

    https://social.msdn.microsoft.com/Forums/en-US/home?category=officedev&filter=alltypes&sort=lastpostdesc

    Best Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, May 8, 2019 2:35 AM
  • Hi Wendy,

    I already did: https://social.msdn.microsoft.com/Forums/en-US/d899fe8b-2188-4ea8-ae01-3adc4dc8964d/unable-to-load-microsoftofficeinteropoutlook-on-one-pc

    but with no reply yet.

    Roman

    Thursday, May 9, 2019 7:00 AM