Hi guys,
I am trying to add the 'Microsoft.Office.Interop.Outlook' DLL reference to my project, and while it works perfectly fine on my development machine, it does not work on the live server. The error dumped on the page is:
Server Error in '/WebPortal' Application.
Could not load file or assembly 'office, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.
Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'office, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.
This is how I'm adding the reference under 'system.web' the web.config file:
<assemblies>
<add assembly="Microsoft.Office.Interop.Outlook, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"/>
</assemblies>
And when I do a search for the DLL on both machines it turns up at the following locations:
Dev machine (working):
C:\Program Files\Reference Assemblies\Microsoft\VSTO40\v4.0.Framework
C:\Program Files\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Office12
C:\Program Files\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Office14
C:\WINDOWS\Microsoft.NET\assembly\GAC_MSIL\Microsoft.Office.Tools.Outlook\v4.0_10.0.0.0__b03f5f7f11d50a3a
Live machine (not working):
C:\Program Files\Reference Assemblies\Microsoft\VSTO40\v4.0.Framework
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Office12
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Office14
C:\WINDOWS\Microsoft.NET\assembly\GAC_MSIL\Microsoft.Office.Tools.Outlook\v4.0_10.0.0.0__b03f5f7f11d50a3a
I have checked the exact vesrion numbers and public keys of each of the DLLs in turn, and tried changing the values in the web.cfg, but still no joy.
Is there any other reason why the server would not be picking this reference up?
Many thanks in advance,
Nick