Hi,
I have a very odd problem that I've been looking around at for the last 2 weeks off and on.
I'm using SD Version:4.0.0 Build: 7070
Create a new project using .net 3.5
We have Excel 2000 at my work
I add in the COM reference to Microsoft Excel 9.0 Object Library
Add Imports Excel at the top
I can use office automation perfectly without any issues.
If I then create a new project but with .net 4.0 instead of 3.5 and do everything else exactly the same it just wont work. It's giving me the following error
System.IO.FileNotFoundException: Could not load file or assembly 'Interop.Office, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'Interop.Office, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null'
Where can I find Interop.Office, Version=2.1.0.0 and why does this work perfectly in 3.5?
I feel like I'm going round the bend with this at the moment. I can't downgrade the project as I get loads of other errors to do with resx files that I believe is already an ongoing bug.
Can anyone help me? Otherwise, if I create a new project in .net 4.0 by accident (It's default) then I would have to re-create it all again and copy the code and everything to a new project (Which is a pain as I'm sure you know)
Thanks
Tilly