473,395 Members | 1,532 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

installing a session-level error handler?

Hi all,
I'd like to have an error handler proc installed that can grab unhandled
errors during a Session before the Session object goes down. I mainly want
to log some info kept at the session state upon such an exception, before I
propagate it to the system again

Now I'm catching the errors at global.asax.vb which is too late, since it's
at the Application level and the Session has already died. So I can only log
user's IP address, the error trace and the page it happened at, but not the
username, nor other info related to my application (schoolyear etc.)

thanks in advance for any insights to that,
George

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
George Birbilis <bi******@kagi.com>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ QuickTime VCL and ActiveX controls (for PowerPoint/VB/Delphi etc.)
+ Plugs VCL and ActiveX controls (InterProcess/Internet communication)
+ TransFormations, VB6 forms to ASP.net WebForms convertion
http://www.kagi.com/birbilis
+ Robotics
http://www.mech.upatras.gr/~robgroup
.................................................. .......................
Nov 17 '05 #1
2 1076
There is no concept of a 'session level' as far as catching errors.

I recommend you make a base page class that inherits from the Page class
that handles the Error event. Then have all your pages inherit from this
page - and all their errors should be handled on the page level.

"George Birbilis" <bi******@kagi.com> wrote in message
news:O$**************@TK2MSFTNGP10.phx.gbl...
Hi all,
I'd like to have an error handler proc installed that can grab unhandled
errors during a Session before the Session object goes down. I mainly want
to log some info kept at the session state upon such an exception, before I propagate it to the system again

Now I'm catching the errors at global.asax.vb which is too late, since it's at the Application level and the Session has already died. So I can only log user's IP address, the error trace and the page it happened at, but not the username, nor other info related to my application (schoolyear etc.)

thanks in advance for any insights to that,
George

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
George Birbilis <bi******@kagi.com>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ QuickTime VCL and ActiveX controls (for PowerPoint/VB/Delphi etc.)
+ Plugs VCL and ActiveX controls (InterProcess/Internet communication)
+ TransFormations, VB6 forms to ASP.net WebForms convertion
http://www.kagi.com/birbilis
+ Robotics
http://www.mech.upatras.gr/~robgroup
.................................................. ......................

Nov 17 '05 #2
thanks a lot,
I wonder how I hadn't noticed the "Error" event at the Page class (inherited
from TemplateControl) and had only spotted the one at global.asax

I use a custom base class already, so it's fine

cheers,
George
There is no concept of a 'session level' as far as catching errors.

I recommend you make a base page class that inherits from the Page class
that handles the Error event. Then have all your pages inherit from this
page - and all their errors should be handled on the page level.
Hi all,
I'd like to have an error handler proc installed that can grab unhandled
errors during a Session before the Session object goes down. I mainly want to log some info kept at the session state upon such an exception,
before I
propagate it to the system again

Now I'm catching the errors at global.asax.vb which is too late, since

it's
at the Application level and the Session has already died. So I can only

log
user's IP address, the error trace and the page it happened at, but not

the
username, nor other info related to my application (schoolyear etc.)

thanks in advance for any insights to that,
George

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
George Birbilis <bi******@kagi.com>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ QuickTime VCL and ActiveX controls (for PowerPoint/VB/Delphi etc.)
+ Plugs VCL and ActiveX controls (InterProcess/Internet communication)
+ TransFormations, VB6 forms to ASP.net WebForms convertion
http://www.kagi.com/birbilis
+ Robotics
http://www.mech.upatras.gr/~robgroup
.................................................. ......................


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jean-Christian Imbeault | last post by:
I have a user account on a RH Linux machine but no root access. I succesfully installed apache 1.3 under my /home/ account but can't get PHP to install properly. I have done the following...
0
by: Steve | last post by:
I'm posting this message here, so that someone googling here will be able to find it. I was having problems installing cx_Oracle on Solaris. The build would fail with a message: > ld: fatal:...
3
by: jaggi | last post by:
Hi all, I downloaded DB2 enterprise edition from partnerworld on ibm.com and unzipped and untarred it and copied it to CD and tried installing on AIX using SMIT. I am getting errors while...
1
by: Bhavya Shah | last post by:
Hello, I want to install an application as a Windows Service on a remote computer. I know the procedure to install a windows service on a local computer by using installutil.exe. How can I...
3
by: Wayne Shen | last post by:
Hi Guys Today I installed Windows SharePoint Service and BizTalk Server 2004, then I found that my previous web application does not work. So I debugged the application, and the ASP.Net Session is...
2
by: Peter Afonin | last post by:
Hello, I've installed Windows XP SP2 on my development PC. After this any session object in my applications doesn't work anymore. Whatever I put into my session object, when I debug I can see...
8
by: Beve Lyni | last post by:
I am running an asp.net project on my localhost and using state server as state management, it has the following code in web.config <sessionState mode="StateServer"...
11
by: tshad | last post by:
I have a small Windows Service program that just has a timer on it and it built fine. I try to install it using InstallUtil and I get the following message: ...
14
by: aroraamit81 | last post by:
Hi, I am facing a trouble. I have some Session variables in my code and somehow my session variables are getting mixed up with other users. For example User A has access to 10 companies and...
1
by: Robin9876 | last post by:
I have found to configure ASP.Net on IIS7 to use SQL Session State you need to run aspnet_regsql.exe Looking at the help file it appears that the connection string would need permissions to create...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.