Hello,
I have a C# project which references Microsoft.Office.Interop.Excel.dll located in
"C:\Program Files\Microsoft Visual Studio 9.0\Visual Studio Tools for Office\PIA\Office11\Microsoft.Office.Interop.Excel.dll"
My machine information: Win 7 Pro, Office 2010, Visual Studio Professional 2012
When i compile the project on my machine it compiles and runs fine. When i move the same project to a different machine which has Office 2007, the code does not work. It blows up with the below error message.
Error Message - Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Any idea why it is working on my machine and when i deploy to the users pc its not working?
Thanks,
V