Copy sheet in excel file


When I am trying to copy sheet of excel, getting below error in one server in one server where the same code is working very fine in local machine.

Any solution to handle this, please.

“Copy Sheet: Unable to cast COM object of type ‘System.__ComObject’ to interface type ‘Microsoft.Office.Interop.Excel._Workbook’. This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{000208DA-0000-0000-C000-000000000046}’ failed due to the following error: The requested object does not exist. (Exception from HRESULT: 0x80010114).”


Hi ,
Have you tried this one ?


@loginerror @aksh1yadav Please can you assist here. I am having this error too.

It works fine on studio, but it is throwing this error on the server. Please help.