简体   繁体   中英

IIS + microsoft.Office.Interop.Word

I have developed one application which generate documents using microsoft.Office.Interop.Word .

I'm facing some problems here.
Document generation process is not working on windows server 2012 R2 .

After long search over internet somehow it is working now. But the problem is if my site is in idle mode for approx 8 hours and after that if I try to do same process of generation of documents, it won't work.

But, after restarting my application pool on IIS, it works again.

Anybody have idea what is going on?
Thank you.

Don't do office interop in a web application, Microsoft does not recommend it either. Use other libraries (NPOI, Aspose,...) some are free, some are commercial.

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