The error you are getting says you have 2 namespaces having the same name of Application class in it so you need to choose the correct one for your use here.
You can either use the full name of the class with namespace when declaring your Application instance or create an alias to resolve this issue.
using ExcelNS = Microsoft.Office.Interop.Excel;
Application app=new ExcelNS.Application();
Or
Application app=new Microsoft.Office.Interop.Excel.Application();