简体   繁体   中英

Issue with Excel in IIS

I create excel file with chart and it's working on my local machine with VS inbuilt iis. But when I deployed it on hosting server it's not working. My environment is: -Win2K8 -IIS 7.0 -MS Office profession -PIA (2010 tried)

Very first time, I was getting 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))*

After some configuration like Dconfig allowing access for Networking service and created desktop folder with full write permission to everyone but I din't got succeeded. Even now I am not getting any error but file is not opening (Excel and PPT). I check our custom application log and system log.

Please guide me why this happening?

Use Office Open XML to create your files instead of automation. There are several libraries out there that will help you build Excel files. I personally use EPPlus and think it's pretty decent.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM