Reference Not recognized

Hi folks i am trying to read and write an excel using Microsoft.Office.Interop.Excel i also added the reference and i added the dll to epicor client folder. For some reason epicor through this error The type or namespace name ‘Office’ does not exist in the namespace ‘Microsoft’ (are you missing an assembly reference?)

Any help will be highly appreciated
Thanks

Did you type using Microsoft.Office.Interop.Excel; in your references after importing the dll.

Yes i did if i dont i get an error in the method i am using the code what is weird tho is that in Visueal Studio is working fine but not in epicor i have the same Dll and using in both places

You added the dll to the server?

No i just added to the client let me do that one sec

I copy it in the server and it still provide the same error