Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Dynamics Business Central: Missing Microsoft.Office.Interop.Outlook, Version=15.0.0.0

Posted on by 5

Hello Everyone,

I am incorporating Microsoft.Office.Interop.Outlook, version=15.0.0.0 into Business central. I have declared dotnet variables as follows and specified assembly probing path correctly as attached as well but my app is not compiling. It throughs an error that, error AL0451: An assembly named 'Microsoft.Office.Interop.Outlook, Culture=neutral, PublicKeyToken=71e9bce111e9429c' could not be found in the assembly probing paths 'C:\Program Files\Microsoft Dynamics 365 Business Central\140\Service\Add-Ins, C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\Microsoft Dynamics NAV\Add-Ins\14.0.43793.0, C:\Program Files\Microsoft Dynamics 365 Business Central\140\Service\, C:\windows\Microsoft.NET\assembly\'.

I have given folder path all the user permissions but everything seems not working.

Dotnet assembly file;

    assembly("Microsoft.Office.Interop.Outlook")
    {
        Version = '15.0.0.0';
         Culture = 'neutral';
         PublicKeyToken = '71e9bce111e9429c';
        type(Microsoft.Office.Interop.Outlook.ApplicationClass; ApplicationClassApp) { }
        type(Microsoft.Office.Interop.Outlook.OlItemType; OlItemType) { }
        type(Microsoft.Office.Interop.Outlook.MailItem; MailItem) { }
        type(Microsoft.Office.Interop.Outlook.Attachments; Attachments) { }
        type(Microsoft.Office.Interop.Outlook.OlAttachmentType; OlAttachmentTypeApp) { }
        type(Microsoft.Office.Interop.Outlook.OlBodyFormat; OlBodyFormat) { }
    }
Assembly Probing Path;
    "al.assemblyProbingPaths": [
        "./.netpackages",
        "C:\\Program Files\\Reference Assemblies\\Microsoft\\Framework\\v3.5",
        "C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework",
        "C:\\Program Files\\Microsoft Dynamics 365 Business Central\\140",
        "C:\\Program Files (x86)\\Microsoft Dynamics 365 Business Central\\140",
        "C:\\Program Files\\Microsoft Dynamics 365 Business Central\\140\\Service\\Add-Ins",
        "C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\WindowsPowerShell",
        "C:\\Windows\\assembly",
        "C:\\Program Files (x86)\\Microsoft Dynamics 365 Business Central\\140\\RoleTailored Client",
        "C:\\Program Files\\Microsoft Dynamics 365 Business Central\\140\\Service",
        "C:\\Windows\\assembly\\GAC_MSIL\\Microsoft.Office.Interop.Outlook\\15.0.0.0__71e9bce111e9429c",
        "C:\\Windows\\assembly\\GAC_MSIL\\office\\15.0.0.0__71e9bce111e9429c",
        "C:\\Windows\\Microsoft.NET\\assembly"
    ],
Does anyone implemented this functionality in Business central, if so kindly share your idea. Thank you.

  • Suggested answer
    Shuu Profile Picture
    Shuu 5 on at
    RE: Dynamics Business Central: Missing Microsoft.Office.Interop.Outlook, Version=15.0.0.0

    Thank you, though this did not resolved my problem.

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Dynamics Business Central: Missing Microsoft.Office.Interop.Outlook, Version=15.0.0.0

    Hi,

    You can refer the below link

    learn.microsoft.com/.../microsoft-office-interop-excel-cannot-be-found-on

    stackoverflow.com/.../could-not-load-file-or-assembly-interop-microsoft-office-core-version-2-4-0-0

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,188 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,030 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans