Getting error when method called asynchronously : Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.
Microsoft.Office.Interop.Excel.Application objExcel= new Microsoft.Office.Interop.Excel.Application ();
I need to create Excel file in a background. User should not need to wait for the file creation. Hence I use asyncronous method for file creation.And got above error. I have pasted the code below how I use COM object. beacause, it is not allowing me to create
a object of Microsoft.Office.Interop.Exce When I try to create object it in a async method .
//Code Block Start
private delegate string DelegateAsyncExportDataForClassfication(DataSet ds, string filePath);
private IAsyncResult AsyncExportDataForClassfication(DataSet ActivityType, string filePath)
{
...
Go to the complete details ...