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.