Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6620661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:07:50+00:00 2026-05-25T21:07:50+00:00

I have a simple web application which uses the Excel Interop libraries to read

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T21:07:50+00:00Added an answer on May 25, 2026 at 9:07 pm

    I’m not sure this is exactly an answer but I have worked a lot with ASP.NET and Excel Interop and can offer you some of my observations / pointers.

    If you use Task Manager you can see which user is still running EXCEL.EXE process – it’s most likely the AppPool Identity.

    From experience when the app pool recycles this will close Excel.

    Also you may notice that if you run your script again a second Excel opens and will close!

    For reference, here is my Close Excel code:

    xl.Quit();
    Marshal.ReleaseComObject(xl);
    xl = null;
    GC.Collect();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A simple question. I have an ASP.NET web application which contains several assemblies and
I am developing an IOS application, which uses web services (SOAP/WSDL). I have built
I have a simple ASP.NET MVC web application that uses NHibernate with FluentNHibernate's auto
I have an extremely simple web application running in Tomcat using Spring 3.0.2, Hibernate
I have a really simple ASP.NET web application and a web setup project that
We have a very simple ASP.NET web application comprising mostly static content and a
In my web application, I have users input a date in a simple textbox.
I have an ASP.Net 4.0 web application which very frequently loads data from the
Whats the easiest way to build a simple 'web' application which is a single
I have a PHP based web application which is currently only using one webserver

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.