Click here to Skip to main content
15,617,116 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:

I am trying to convert a project with Framework 2.0 to Frameowrk 4.0, and I come into those errors of ' ambiguous in the namespace 'Microsoft.Office.Interop.Excel''. This is referring to Application, Workbook, Worksheet. I tried to delete the reference and re-add, but still the problems are not fixed.

Does anyone know how to do about it?

Updated 2-Jul-14 4:29am
CHill60 2-Jul-14 10:32am    
Can you post the line of code that gives you the error, and your Imports statement too

Try to delete the files in the obj and bin folder. An older version might still persist there.

Good luck!
Share this answer
See also[^].
Look at the target framework of all of the "projects" in your "solution".
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900