Microsoft Office Version 15

Add-in Express™ Support Service
That's what is more important than anything else

Other programs that come with the download include the 2013 versions of PowerPoint, Publisher and Access. Use the included Lync as a new instant messenger to stay connected with friends, family and even coworkers. Even if you used Microsoft Office in the past, you'll find some new features on the 2013 version. As far as I know, your server need have the corresponding version of Office installed. 15.0.0.0 should correspond to Office 2013 - that needs to be installed on your target machine (other versions of Office may not work). I suggest you could try to use 14.0.0.0 or 12.0.0.0, maybe it will work well. If you see Version 15.x, you’re using Office for Mac 2016. If you see Version 14.x, Office for Mac 2011 is what you’re using. On the Mac, there is no choice between running a 32-bit or 64-bit version of the operating system, since the OS has been 64-bit for several years.

Add-in Express forums>Add-in Express for .net and VSTO forum
Seeing 'Could not load file or assembly 'Microsoft.Office.Interop.Outlook, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. Access is denied.' error on Outlook 2013 with Win10 machines
EnterpriseDev


Posts: 65
Joined: 2016-07-01
I am seeing the error below for multiple independent customers who all are running Win10 with Outlook 2013. It only happens on clean machines, and it started happening in May 2019. Restarting or reinstalling Outlook does not seem to help.
Could not load file or assembly 'Microsoft.Office.Interop.Outlook, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. Access is denied.
The 'Microsoft.Office.Interop.Outlook.dll' is present in Program Files (x86), and the key to the error message seems to be 'Access is defined' at the end of the error string.
How would you debug this on a customer's machine? Have you seen this before? Any clue?
Dmitry Kostochko

Add-in Express team

Posts: 2870
Joined: 2004-04-05
Hello,
We faced similar issues but with 2016 version of Outlook and Excel. Usually, after successful installation or update of Office applications, their Primary Interop Assemblies (PIAs) are located in GAC:
C:WindowsassemblyGAC_MSILMicrosoft.Office.Interop.Outlook15.0.0.0__71e9bce111e9429c
C:WindowsassemblyGAC_MSILMicrosoft.Vbe.Interop15.0.0.0__71e9bce111e9429c
C:WindowsassemblyGAC_MSILoffice15.0.0.0__71e9bce111e9429c
Please check these locations on your customer's machine, probably you will find something abnormal.
If your add-in targets .NET Framework 4.0 or higher, you can set the 'Embed Interop Types' property for all interops to True. This will embed all used Office types into your assembly, and interop assemblies (Microsoft.Office.Interop.Outlook.dll, Microsoft.Vbe.Interop.dll, Office.dll) will become unnecessary.
Bargholz Thomas


Posts: 242
Joined: 2006-12-18
We had similar issues on multiple client computers (but far from all).
It seems to be related to an issue with the .NET framework after a Windows (or Office) update which started rolling out in may.
What have fixed it for us are either running the Microsoft .NET Framework Repair Tool, or applying this patch to .NET Framework: https://support.microsoft.com/da-dk/help/4503864/cumulative-update-for-net-framework-june-18-2019
Regards
Thomas
Andrei Smolin

Add-in Express team

Posts: 17797
Joined: 2006-05-11
Hello Thomas,
Thank you for sharing this info!
Regards from Belarus (GMT+3),
Andrei Smolin
Add-in Express Team Leader

Could not load file or assembly 'office, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bc...

Jun 13, 2018 06:54 PM|smilingLily|LINK

I developed an application that opens Outlook on a button click. When I tested it locally it works fine with out any issues. I moved the code to test server and I am getting below error. How can I fix it? I have Microsoft office 2010 installed on my local machine as well as on the test server.

Dim Outl As Microsoft.Office.Interop.Outlook.Application = New Microsoft.Office.Interop.Outlook.Application()

I also tried using

I also got this error message even if I have Office 2010 and I don

KB 5000635

'Dim Outl As Object
'Outl = CreateObject('Outlook.Application')

' Outl = Activator.CreateInstance(Type.GetTypeFromProgID('Outlook.Application'))

All these statements worked on my local environment and they didn't work on test server.

Could not load file or assembly 'office, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'office, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.

VersionMicrosoft Office Version 15

C# - Could Not Load File Or Assembly 'Office, Version=15.0.0 ...

Assembly Load Trace: The following information can be helpful to determine why the assembly 'office, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' could not be loaded.