Hi,
I created a custom service that writes data into excel. I used the following classes to write datas in to excel "
SysOperationProgress progress = new SysOperationProgress();
SysExcelApplication sysExcelApplication;
SysExcelWorkbooks sysExcelWorkBooks;
SysExcelWorkbook sysExcelWorkBook;
SysExcelWorkSheets sysExcelWorkSheets;
SysExcelWorkSheet sysExcelWorkSheet;
SysExcelWorksheet sysExcelWorkSheetToBeDeleted;"
I called the custom service from C# WCF application. I get the following error "Exception of type 'Microsoft.Dynamics.Ax.Xpp.InvalidRemoteCallException' was thrown." but when I use the same code in job and execute it, the data is written into excel successfully. When I wrap this job as a custom service, to consume it from C# WCF, I get the above error.
When I browse regarding this error I found that it is because of the "Sysexcel" class I am using in the code. Am I correct? Can you help me for this solution.
*This post is locked for comments
I have the same question (0)