Re: debug session on a webservice does not end

From: mekim (mekim_at_discussions.microsoft.com)
Date: 11/08/04


Date: Mon, 8 Nov 2004 15:04:01 -0800

Hi Martin,

In the webservice's global.asax file I create an object (private myClass1 as
new classWhatever) on app_start to persist data between calls.

The problem is that the object is not destroyed in app_end since it's not
called when I terminate the main project during debug. hmmm...come to think
of it...I'm not sure how app_end is ever called in a webservice project

Regards,
Mekim

"Martin Kulov" wrote:

> Hi mekim,
>
> That's the idea of global.asax file. What do you trying to achieve? Generally speaking it is not recommended practice to write custom code in global.asax file.
>
> Martin
>