Click here to Skip to main content
15,213,487 members
Rate this:
Please Sign up or sign in to vote.
See more:
When trying to read excel file from the ASP.Net web application getting following error -

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).
Posted
Rate this:
Please Sign up or sign in to vote.

Solution 2

To get that code working you'll need Excel installed and launchable from your web code. This is hard to get working, and not supported by Microsoft and won't really work anyway. You can try something like the Open XML SDK to read Excel documents, or the Excel ODBC driver, or Aspose etc.

http://typecastexception.com/post/2013/09/25/C-Query-Excel-and-CSV-Files-Using-LinqToExcel.aspx[^]
   
Rate this:
Please Sign up or sign in to vote.

Solution 1

You're trying to do Interop with Excel. This is NOT supported in a web application as Excel doesn't really support multiple requests at the same time.

Read this[^] to find out why.
   
v2

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100