View Full Version : Can't release Excel from memory using ASP.NET


Wesley
03-02-2006, 02:54 PM
Hi, I'm creating a report in Excel using asp.net, but I can't release the
Excel instance from memory. Excel.exe stays in the Windows Task Manager.

Below is an example of the code I'm using:

Dim appExcel As New Microsoft.Office.Interop.Excel.Application


appExcel.ActiveWorkbook.Close()
appExcel.Quit()
System.Runtime.InteropServices.Marshal.ReleaseComObject(appExcel)
appExcel = Nothing
GC.Collect()

Thanks,
Wesley