I have a simple web application which uses the Excel Interop libraries to read and insert into an Excel spreadsheet. I'm taking my due diligence to ensure that I don't use two dots and to ensure that all COM object references are released by using Marshal.ReleaseComObject()
and GC.Collect()
, but there is still an EXCEL.EXE process running on my server.
I've created a Windows Forms application that uses the same object releasing process as in my ASP.NET app, and it ends the process successfully. Is there something involved with using the Interop libraries with ASP.NET that I've overlooked?
EDIT: As a shot in the dark, maybe permissions need to be set up in a specific way on the server? I'm using <identity impersonate="true"/>
in my web.config file and am a local administrator on the server.