T
T OPry
VB.Net application running on Terminal Server 2003
Middle tier is a separate DLL running on the same Terminal Server and
contains all of the ADO.Net methods which invoke stored procedures on a
separate SQL Server 2000 machine.
When the user terminates the application via menu (invokes Application.Exit)
or the close button, the Middle Tier DLL's Dispose method calls an Update
method that is used to check for any record changes and to call the
appropriate update stored procedure.
This works fine EXCEPT if the user does a 'Logout' from Terminal Server or
the session times out and the application is closed.
I have verified that the update method is being invoked and no errors are
being thrown - No errors in the event logs and I have run a trace on the
SQL server to verify that the update sProc is never being called (or at
least invoked on the client connection). However a logout stored procedure
run AFTER the update is invoked. This logout is invoked from the Main
executable, unlike the Update which is in a separate DLL.
It appears that the logout is causing the DLL with the middle tier code to
de-reference differently than when shutdown via application.exit or the
Close button.
Any ideas on the cause or possible solution?
Middle tier is a separate DLL running on the same Terminal Server and
contains all of the ADO.Net methods which invoke stored procedures on a
separate SQL Server 2000 machine.
When the user terminates the application via menu (invokes Application.Exit)
or the close button, the Middle Tier DLL's Dispose method calls an Update
method that is used to check for any record changes and to call the
appropriate update stored procedure.
This works fine EXCEPT if the user does a 'Logout' from Terminal Server or
the session times out and the application is closed.
I have verified that the update method is being invoked and no errors are
being thrown - No errors in the event logs and I have run a trace on the
SQL server to verify that the update sProc is never being called (or at
least invoked on the client connection). However a logout stored procedure
run AFTER the update is invoked. This logout is invoked from the Main
executable, unlike the Update which is in a separate DLL.
It appears that the logout is causing the DLL with the middle tier code to
de-reference differently than when shutdown via application.exit or the
Close button.
Any ideas on the cause or possible solution?