Do I cause a memory leak in aspnet_ws.exe?

A

Antonio

My web page allows a user to click a button for a report to be created.
When they click, the code calls a web service which accesses SQL
Server and calls a stored procedure. THE SP takes 2 minutes to run.
The web service return data type is DataSet and the dataset is handed
to a method which creates an excel file for the user to download. It
uses code such as

response.ContentType = "application/vnd.ms-excel";
and
dataGrid.RenderControl(htmlWrite);

I obtained that excel block of code from this group!


But I think that if a user might be clicking stop after running the
code that the IIS server is memory leaking. We have had to run
iisreset to get going again. The memory does free up on it's own but
not fast.

When someone clicks stop does the web service still keep going?

Any help is suggested for me?
 
A

Alvin Bruney [MVP - ASP.NET]

it should keep going because it is a fire and forget call. I suppose you can
call IsClientConnected periodically during the long running operation but
that's always the inherent risk of long running threads of execution.

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc, Amazon.com etc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,167
Latest member
SusanaSwan
Top