Click here to Skip to main content
15,919,500 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I am getting the error "0x8000401A": Retrieving the COM class factory for component with CLSID at times.

I am trying to call web method where values from a data set are exported to the excel sheet. I am exporting the same using excel object.The permission for bulk excel file processing was done and mentioned issue was resolved.But the same error came up later after a while.

What I have tried:

The permission for bulk excel file processing was done and mentioned issue was resolved.But the same error came up later after a while.
Posted
Updated 29-Aug-16 22:33pm
Comments
F-ES Sitecore 30-Aug-16 4:35am    
As mentioned, Excel automation is not supported from asp.net, you'll need to use a method that is like the XML SDK, Excel ODBC driver, EPPlus, Aspose etc. Google those for code samples etc.

1 solution

Do not use Excel with ASP.Net. Microsoft officially stated that they do NOT support that.
 
Share this answer
 
Comments
Ema112 30-Aug-16 7:42am    
Even if so how this issue can be resolved. We are calling web service in a remote server. What I found out if the user in domain account user having permission is logged in the same server such an issue is not there. Else the same error comes.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900