Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
..when i'm running on server,project showing this error when uploading an excel sheet using
C#
Microsoft.Office.Interop.Excel


What I have tried:

when i'm running on server,project showing this error when uploading an excel sheet using Microsoft.Office.Interop.Excel
Posted
Updated 11-Sep-16 19:33pm
Comments
Maciej Los 12-Sep-16 1:31am    
Does Excel is installed on server machine?

1 solution

1) Microsoft Office should be installed on your server.

2) It is generally a bad idea to use Office interop in a server environment.

3) Try using Excel libraries like : EPPlus-Create advanced Excel spreadsheets on the server - Home[^]
 
Share this answer
 

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