Hi,
    We have developed a 3 tier application. It uses web-services for the
UI -- Business Logic connection. One of the major miscalculations that
we did was not considering Session Timeouts. Now after patching up every
other web-method with
                                [WebMethod(EnableSession=true)]
 I get 2 problems, one of them is,again, patchable. The other, serious.

Problem 1.   Session_End doesn't get called when sessions time out.
        WorkAround : Monitor Session on start.
                        As of now this works fine.
Problem 2 (the serious one)
                        If one of my windows forms call a webservice's
method and coincidentally, while the call is made, the session times
out.
                                Here most of my windows forms objects
get disposed, I programmatically close all MDI childs, and prompt for
log in.                                 After  successful log in, the
call that was made starts completion ( <painful>) . Obviously all
objects are not                                 getting disposed, or
Gced. Is there anything really really basic that im missing out here? I
mean why should the                                     completion
continue once I close all windows  ? Should I call Dispose for each form
programmatically? Its causing a                                 major
embarrassment because in some places I start getting weird errors like
buttons not showing up, Object reference
errors(obviously) , and some new ones like Cannot create Window handle
etc.

Any comment would be very helpful.
r.

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
Some .NET courses you may be interested in:

Essential .NET: building applications and components with CSharp
August 30 - September 3, in Los Angeles
http://www.develop.com/courses/edotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to