I am using the Microsoft.Office.Interop.Excel link in a windows service application to create excel reports. The application works fine on the DEV machine, but on the build machine it does not respond: "The type or name of the" Office "namespace does not exist in the" Microsoft "namespace (do you have a shortcut to the assembly?)"
It runs on a DEV machine because MS Excel 2010 is already installed. But MS Excel is not installed in the build server.
My question is whether the installation of MS Excel on the assembly server is mandatory for the success of the assembly, or can I copy the Microsoft.Office.Interop.Excel.dll file to my project folders, specify it and register it for assembly. Currently, the dll link added to the application points to the assembly (GAC).
Another thing is that these interop dlls are not redistributed as they are part of the MS_Office product.
Please suggest me the right approach in this regard.
source share