Click here to Skip to main content
15,943,085 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I Have a Problem when i was publish my project ,

It features is upload excel file ,
but , it show error like this

"
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException:

What I have tried:

how i can solve this?

Do anyone help me solve this?
Posted
Updated 26-May-20 21:24pm
Comments
RickZeeland 27-May-20 1:39am    
That could be related to an Excel library that uses COM, please give more details about what you are using, how it is referenced and the relevant code for the upload.
Member 14760154 27-May-20 2:29am    
I think i have found the problem, the servers not installed office yet,

but i found i new problem , I think i can't convert xls into xlsx using interop excel.

Does any other way to convert xls into xlsx?

1 solution

Maybe this will be of help: Write data to Excel file (.xls and .xlsx) in ASP.Net[^]

And here is another example for ASP.NET Core that uses the ClosedXML library:
Export data to Excel with ASP.NET Core | elmah.io[^]
 
Share this answer
 
v2

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