473,233 Members | 1,602 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,233 software developers and data experts.

Global Exception Handler

Hello all,

I've added a global exception handler to my application in this way:

Sub Main()
AddHandler Application.ThreadException, AddressOf ThreadException
AddHandler AppDomain.CurrentDomain.UnhandledException, AddressOf
UnhandledException

Application.Run(Main)
End Sub

At one point in my application, I use the
System.Diagnostics.Process.GetProcesses() method, and it fires a
System.InvalidOperationException error (I know why, it's related to the
Performance Counter Disabled in the Registry, so this is not an issue). But
why the exception is not catched by the two exception handler I've declared
in the Sub Main?

Thanks
Nov 20 '05 #1
9 2181
Claudio,
What do you mean specifically by "not caught"?

- Is your app failing with that exception?
- Is it that the global handlers are not entered?
- Do you have a Try/Catch around the block of code where you have
Process.GetProcesses?
- is Process.GetProcesses in its own thread?
- is Process.GetProcesses in its own appdomain?

Can you give more details on where & how Process.GetProcesses is being
called?

Hope this helps
Jay

"Claudio Di Flumeri" <cl*****@mtgc.net> wrote in message
news:bu************@ID-198343.news.uni-berlin.de...
Hello all,

I've added a global exception handler to my application in this way:

Sub Main()
AddHandler Application.ThreadException, AddressOf ThreadException
AddHandler AppDomain.CurrentDomain.UnhandledException, AddressOf
UnhandledException

Application.Run(Main)
End Sub

At one point in my application, I use the
System.Diagnostics.Process.GetProcesses() method, and it fires a
System.InvalidOperationException error (I know why, it's related to the
Performance Counter Disabled in the Registry, so this is not an issue). But why the exception is not catched by the two exception handler I've declared in the Sub Main?

Thanks

Nov 20 '05 #2
Jay,

Yes my application fails with that exception, and the global handlers are
not entered. I don't have a Try - Catch around that block of code, just
because I want the exception being intercepted by one of the 2 global
handlers (but it doesn't happen). The Process.GetProcesses it's not on his
own thread, because I've entered it in Sub Main just after the Global
Handlers. My code is something like this:
Private Sub Application_ThreadException(ByVal sender As Object, ByVal e As
System.Threading.ThreadExceptionEventArgs)
'My routine to show an error message box
MessaggioErrore(e.Exception, e.Exception.TargetSite)
End Sub

Private Sub Application_UnhandledException(ByVal sender As Object, ByVal e
As UnhandledExceptionEventArgs)
'My routine to show an error message box
MessaggioErrore(e.ExceptionObject, CType(e.ExceptionObject,
Exception).TargetSite)
End Sub

Sub Main()
AddHandler Application.ThreadException, AddressOf
Application_ThreadException
AddHandler AppDomain.CurrentDomain.UnhandledException, AddressOf
Application_UnhandledException

Dim Aux As Integer = System.Diagnostics.Process.GetProcesses().Length

Application.Run(Main)
End Sub

I don't understand why this exception is not caught!

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> ha scritto nel
messaggio news:ux**************@TK2MSFTNGP10.phx.gbl...
Claudio,
What do you mean specifically by "not caught"?

- Is your app failing with that exception?
- Is it that the global handlers are not entered?
- Do you have a Try/Catch around the block of code where you have
Process.GetProcesses?
- is Process.GetProcesses in its own thread?
- is Process.GetProcesses in its own appdomain?

Can you give more details on where & how Process.GetProcesses is being
called?

Hope this helps
Jay


Nov 20 '05 #3
It's probably because the exception is happening before the Application is
actually started.

Note the difference beteen the "Application" object (which starts with the
call to Application.Run), and your process (which starts at sub main). The
application object serves as a host for Windows Forms applications - it
provides message loop functions etc.

Because the exception is raised outside the context of the application
object, it cannot be caught by its error handlers. Only exceptions that
happen as part of the message loop inside the Application.Run method can be
caught in this way.

Try moving the line that raises the exception to the Constructor of your
main form and it should work.
HTH,

Trev.
"Claudio Di Flumeri" <cl*****@mtgc.net> wrote in message
news:bu************@ID-198343.news.uni-berlin.de...
Jay,

Yes my application fails with that exception, and the global handlers are
not entered. I don't have a Try - Catch around that block of code, just
because I want the exception being intercepted by one of the 2 global
handlers (but it doesn't happen). The Process.GetProcesses it's not on his
own thread, because I've entered it in Sub Main just after the Global
Handlers. My code is something like this:
Private Sub Application_ThreadException(ByVal sender As Object, ByVal e As
System.Threading.ThreadExceptionEventArgs)
'My routine to show an error message box
MessaggioErrore(e.Exception, e.Exception.TargetSite)
End Sub

Private Sub Application_UnhandledException(ByVal sender As Object, ByVal e
As UnhandledExceptionEventArgs)
'My routine to show an error message box
MessaggioErrore(e.ExceptionObject, CType(e.ExceptionObject,
Exception).TargetSite)
End Sub

Sub Main()
AddHandler Application.ThreadException, AddressOf
Application_ThreadException
AddHandler AppDomain.CurrentDomain.UnhandledException, AddressOf
Application_UnhandledException

Dim Aux As Integer = System.Diagnostics.Process.GetProcesses().Length

Application.Run(Main)
End Sub

I don't understand why this exception is not caught!

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> ha scritto nel
messaggio news:ux**************@TK2MSFTNGP10.phx.gbl...
Claudio,
What do you mean specifically by "not caught"?

- Is your app failing with that exception?
- Is it that the global handlers are not entered?
- Do you have a Try/Catch around the block of code where you have
Process.GetProcesses?
- is Process.GetProcesses in its own thread?
- is Process.GetProcesses in its own appdomain?

Can you give more details on where & how Process.GetProcesses is being
called?

Hope this helps
Jay


Nov 20 '05 #4
Claudio,
Yes my application fails with that exception, and the global handlers are
not entered. Have you verified this with breakpoints?
As Trev stated: Application_ThreadException will not catch the exception as
Application.ThreadException only handles unhandled exceptions thrown within
Application.Run, in other words only uncaught exceptions from your Windows
Forms Events.

However AppDomain_UnhandledException will handle it, as your exception
caused Sub Main to exit with an unhandled exception, of course once Sub Main
exits your program is finished.

You should be seeing the "MessaggioErrore" routine to be called, then your
program to exit! Are you seeing something else?

Changing:
Dim Aux As Integer = System.Diagnostics.Process.GetProcesses().Length
To:
Throw New Exception("This is Test")

VS.NET 2003 will stop on the Application_UnhandledException, after setting
breakpoints in both exception handlers. I did not verify in VS.NET 2002,
however I would expect the same behavior!

Hope this helps
Jay

"Claudio Di Flumeri" <cl*****@mtgc.net> wrote in message
news:bu************@ID-198343.news.uni-berlin.de... Jay,

Yes my application fails with that exception, and the global handlers are
not entered. I don't have a Try - Catch around that block of code, just
because I want the exception being intercepted by one of the 2 global
handlers (but it doesn't happen). The Process.GetProcesses it's not on his
own thread, because I've entered it in Sub Main just after the Global
Handlers. My code is something like this:
Private Sub Application_ThreadException(ByVal sender As Object, ByVal e As
System.Threading.ThreadExceptionEventArgs)
'My routine to show an error message box
MessaggioErrore(e.Exception, e.Exception.TargetSite)
End Sub

Private Sub Application_UnhandledException(ByVal sender As Object, ByVal e
As UnhandledExceptionEventArgs)
'My routine to show an error message box
MessaggioErrore(e.ExceptionObject, CType(e.ExceptionObject,
Exception).TargetSite)
End Sub

Sub Main()
AddHandler Application.ThreadException, AddressOf
Application_ThreadException
AddHandler AppDomain.CurrentDomain.UnhandledException, AddressOf
Application_UnhandledException

Dim Aux As Integer = System.Diagnostics.Process.GetProcesses().Length

Application.Run(Main)
End Sub

I don't understand why this exception is not caught!

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> ha scritto nel
messaggio news:ux**************@TK2MSFTNGP10.phx.gbl...
Claudio,
What do you mean specifically by "not caught"?

- Is your app failing with that exception?
- Is it that the global handlers are not entered?
- Do you have a Try/Catch around the block of code where you have
Process.GetProcesses?
- is Process.GetProcesses in its own thread?
- is Process.GetProcesses in its own appdomain?

Can you give more details on where & how Process.GetProcesses is being
called?

Hope this helps
Jay


Nov 20 '05 #5
Thanks for your replies,

Actually what is happen is the following:
When I am in debug mode and I launch my application from the IDE of Visual
Studio, the program stops at the instruction

Dim Aux As Integer = System.Diagnostics.Process.GetProcesses().Length

not entering in my exception handlers.
If I compile the application in Release mode and then I launch the .EXE file
(so not from the IDE), it gives me a normal error (A MsgBox saying that no
JIT debugger has been found) and AFTER that it launches my MessaggioErrore
window, likely the one declared in the AppDomain_UnhandledException
subroutine. I'd like that the program would launch immediately my window and
not the one with the "debugger not found error" before, but it's not a big
problem (because I understand that every exception will be caught after the
Application.Run), just curious!

Claudio

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> ha scritto nel
messaggio news:OT**************@tk2msftngp13.phx.gbl...
Claudio,
Yes my application fails with that exception, and the global handlers are not entered. Have you verified this with breakpoints?
As Trev stated: Application_ThreadException will not catch the exception

as Application.ThreadException only handles unhandled exceptions thrown within Application.Run, in other words only uncaught exceptions from your Windows
Forms Events.

However AppDomain_UnhandledException will handle it, as your exception
caused Sub Main to exit with an unhandled exception, of course once Sub Main exits your program is finished.

You should be seeing the "MessaggioErrore" routine to be called, then your
program to exit! Are you seeing something else?

Changing:
Dim Aux As Integer = System.Diagnostics.Process.GetProcesses().Length

To:
Throw New Exception("This is Test")

VS.NET 2003 will stop on the Application_UnhandledException, after setting
breakpoints in both exception handlers. I did not verify in VS.NET 2002,
however I would expect the same behavior!

Hope this helps
Jay

"Claudio Di Flumeri" <cl*****@mtgc.net> wrote in message
news:bu************@ID-198343.news.uni-berlin.de...
Jay,

Yes my application fails with that exception, and the global handlers

are not entered. I don't have a Try - Catch around that block of code, just
because I want the exception being intercepted by one of the 2 global
handlers (but it doesn't happen). The Process.GetProcesses it's not on his own thread, because I've entered it in Sub Main just after the Global
Handlers. My code is something like this:
Private Sub Application_ThreadException(ByVal sender As Object, ByVal e As System.Threading.ThreadExceptionEventArgs)
'My routine to show an error message box
MessaggioErrore(e.Exception, e.Exception.TargetSite)
End Sub

Private Sub Application_UnhandledException(ByVal sender As Object, ByVal e As UnhandledExceptionEventArgs)
'My routine to show an error message box
MessaggioErrore(e.ExceptionObject, CType(e.ExceptionObject,
Exception).TargetSite)
End Sub

Sub Main()
AddHandler Application.ThreadException, AddressOf
Application_ThreadException
AddHandler AppDomain.CurrentDomain.UnhandledException, AddressOf
Application_UnhandledException

Dim Aux As Integer = System.Diagnostics.Process.GetProcesses().Length
Application.Run(Main)
End Sub

I don't understand why this exception is not caught!

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> ha scritto nel
messaggio news:ux**************@TK2MSFTNGP10.phx.gbl...
Claudio,
What do you mean specifically by "not caught"?

- Is your app failing with that exception?
- Is it that the global handlers are not entered?
- Do you have a Try/Catch around the block of code where you have
Process.GetProcesses?
- is Process.GetProcesses in its own thread?
- is Process.GetProcesses in its own appdomain?

Can you give more details on where & how Process.GetProcesses is being
called?

Hope this helps
Jay



Nov 20 '05 #6
Claudio,
When I am in debug mode and I launch my application from the IDE of Visual
Studio, the program stops at the instruction
You can control having it stop on the line in error via 'Debug -
Exceptions - Common Language Runtime Exceptions - If the exception is not
handled - break into the debugger'.

If you press Continue, the AppDomain_UnhandledException will be found.
If I compile the application in Release mode and then I launch the .EXE file (so not from the IDE), it gives me a normal error (A MsgBox saying that no
JIT debugger has been found) and AFTER that it launches my MessaggioErrore
Do you get the JIT debugger on just your development machine or all
machines? I only have immediate access to development machines (machines
that have VS.NET on them) and I get the normal JIT debugger dialog listing
VS.NET when running the program outside the IDE.
I'd like that the program would launch immediately my window and
not the one with the "debugger not found error" before, but it's not a big
problem (because I understand that every exception will be caught after the Application.Run), just curious!
I would simply wrap Sub Main or more specifically Process.GetProcesses in a
Try Catch. ;-)

I remember there being an option to control the JIT debugger window, however
I do not have a reference handy as to whether its in the app.config or
windows itself. I will try to find it later & report back.

Hope this helps
Jay

"Claudio Di Flumeri" <cl***********@mtgcNOSPAM.net> wrote in message
news:7q*********************@news3.tin.it... Thanks for your replies,

Actually what is happen is the following:
When I am in debug mode and I launch my application from the IDE of Visual
Studio, the program stops at the instruction

Dim Aux As Integer = System.Diagnostics.Process.GetProcesses().Length

not entering in my exception handlers.
If I compile the application in Release mode and then I launch the .EXE file (so not from the IDE), it gives me a normal error (A MsgBox saying that no
JIT debugger has been found) and AFTER that it launches my MessaggioErrore
window, likely the one declared in the AppDomain_UnhandledException
subroutine. I'd like that the program would launch immediately my window and not the one with the "debugger not found error" before, but it's not a big
problem (because I understand that every exception will be caught after the Application.Run), just curious!

Claudio

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> ha scritto nel
messaggio news:OT**************@tk2msftngp13.phx.gbl...
Claudio,
Yes my application fails with that exception, and the global handlers are not entered. Have you verified this with breakpoints?
As Trev stated: Application_ThreadException will not catch the exception

as
Application.ThreadException only handles unhandled exceptions thrown

within
Application.Run, in other words only uncaught exceptions from your Windows
Forms Events.

However AppDomain_UnhandledException will handle it, as your exception
caused Sub Main to exit with an unhandled exception, of course once Sub

Main
exits your program is finished.

You should be seeing the "MessaggioErrore" routine to be called, then your program to exit! Are you seeing something else?

Changing:
Dim Aux As Integer = System.Diagnostics.Process.GetProcesses().Length

To:
Throw New Exception("This is Test")

VS.NET 2003 will stop on the Application_UnhandledException, after

setting breakpoints in both exception handlers. I did not verify in VS.NET 2002,
however I would expect the same behavior!

Hope this helps
Jay

"Claudio Di Flumeri" <cl*****@mtgc.net> wrote in message
news:bu************@ID-198343.news.uni-berlin.de...
Jay,

Yes my application fails with that exception, and the global handlers

are not entered. I don't have a Try - Catch around that block of code, just because I want the exception being intercepted by one of the 2 global
handlers (but it doesn't happen). The Process.GetProcesses it's not on his own thread, because I've entered it in Sub Main just after the Global
Handlers. My code is something like this:
Private Sub Application_ThreadException(ByVal sender As Object, ByVal e As
System.Threading.ThreadExceptionEventArgs)
'My routine to show an error message box
MessaggioErrore(e.Exception, e.Exception.TargetSite)
End Sub

Private Sub Application_UnhandledException(ByVal sender As Object,
ByVal
e As UnhandledExceptionEventArgs)
'My routine to show an error message box
MessaggioErrore(e.ExceptionObject, CType(e.ExceptionObject,
Exception).TargetSite)
End Sub

Sub Main()
AddHandler Application.ThreadException, AddressOf
Application_ThreadException
AddHandler AppDomain.CurrentDomain.UnhandledException, AddressOf
Application_UnhandledException

Dim Aux As Integer = System.Diagnostics.Process.GetProcesses().Length
Application.Run(Main)
End Sub

I don't understand why this exception is not caught!

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> ha scritto

nel messaggio news:ux**************@TK2MSFTNGP10.phx.gbl...
> Claudio,
> What do you mean specifically by "not caught"?
>
> - Is your app failing with that exception?
> - Is it that the global handlers are not entered?
> - Do you have a Try/Catch around the block of code where you have
> Process.GetProcesses?
> - is Process.GetProcesses in its own thread?
> - is Process.GetProcesses in its own appdomain?
>
> Can you give more details on where & how Process.GetProcesses is being > called?
>
> Hope this helps
> Jay
>



Nov 20 '05 #7
Claudio,
I tested my version under Windows 2003 Server (without VS.NET installed).

I get a dialog that states "Common Language Runtime Debugger services" with
options to click OK to terminate & Cancel to debug.

I will see if I can find out more info...

However as I pointed out in my other post, the easy way around the other
message is to put a try/catch in your Sub Main.

Hope this helps
Jay

"Claudio Di Flumeri" <cl***********@mtgcNOSPAM.net> wrote in message
news:7q*********************@news3.tin.it...
Thanks for your replies,

Actually what is happen is the following:
When I am in debug mode and I launch my application from the IDE of Visual
Studio, the program stops at the instruction

Dim Aux As Integer = System.Diagnostics.Process.GetProcesses().Length

not entering in my exception handlers.
If I compile the application in Release mode and then I launch the .EXE file (so not from the IDE), it gives me a normal error (A MsgBox saying that no
JIT debugger has been found) and AFTER that it launches my MessaggioErrore
window, likely the one declared in the AppDomain_UnhandledException
subroutine. I'd like that the program would launch immediately my window and not the one with the "debugger not found error" before, but it's not a big
problem (because I understand that every exception will be caught after the Application.Run), just curious!

Claudio

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> ha scritto nel
messaggio news:OT**************@tk2msftngp13.phx.gbl...
Claudio,
Yes my application fails with that exception, and the global handlers are not entered. Have you verified this with breakpoints?
As Trev stated: Application_ThreadException will not catch the exception

as
Application.ThreadException only handles unhandled exceptions thrown

within
Application.Run, in other words only uncaught exceptions from your Windows
Forms Events.

However AppDomain_UnhandledException will handle it, as your exception
caused Sub Main to exit with an unhandled exception, of course once Sub

Main
exits your program is finished.

You should be seeing the "MessaggioErrore" routine to be called, then your program to exit! Are you seeing something else?

Changing:
Dim Aux As Integer = System.Diagnostics.Process.GetProcesses().Length

To:
Throw New Exception("This is Test")

VS.NET 2003 will stop on the Application_UnhandledException, after

setting breakpoints in both exception handlers. I did not verify in VS.NET 2002,
however I would expect the same behavior!

Hope this helps
Jay

"Claudio Di Flumeri" <cl*****@mtgc.net> wrote in message
news:bu************@ID-198343.news.uni-berlin.de...
Jay,

Yes my application fails with that exception, and the global handlers

are not entered. I don't have a Try - Catch around that block of code, just because I want the exception being intercepted by one of the 2 global
handlers (but it doesn't happen). The Process.GetProcesses it's not on his own thread, because I've entered it in Sub Main just after the Global
Handlers. My code is something like this:
Private Sub Application_ThreadException(ByVal sender As Object, ByVal e As
System.Threading.ThreadExceptionEventArgs)
'My routine to show an error message box
MessaggioErrore(e.Exception, e.Exception.TargetSite)
End Sub

Private Sub Application_UnhandledException(ByVal sender As Object,
ByVal
e As UnhandledExceptionEventArgs)
'My routine to show an error message box
MessaggioErrore(e.ExceptionObject, CType(e.ExceptionObject,
Exception).TargetSite)
End Sub

Sub Main()
AddHandler Application.ThreadException, AddressOf
Application_ThreadException
AddHandler AppDomain.CurrentDomain.UnhandledException, AddressOf
Application_UnhandledException

Dim Aux As Integer = System.Diagnostics.Process.GetProcesses().Length
Application.Run(Main)
End Sub

I don't understand why this exception is not caught!

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> ha scritto

nel messaggio news:ux**************@TK2MSFTNGP10.phx.gbl...
> Claudio,
> What do you mean specifically by "not caught"?
>
> - Is your app failing with that exception?
> - Is it that the global handlers are not entered?
> - Do you have a Try/Catch around the block of code where you have
> Process.GetProcesses?
> - is Process.GetProcesses in its own thread?
> - is Process.GetProcesses in its own appdomain?
>
> Can you give more details on where & how Process.GetProcesses is being > called?
>
> Hope this helps
> Jay
>



Nov 20 '05 #8
Jay,

Thanks for your replies! Till now I haven't found a way to "jump" the dialog
with the debugger error (launching the .EXE file directly), anyway for what
I've understood the better way to act is doing something like this:

Sub Main()

AddHandler Application.ThreadException, AddressOf
Application_ThreadException
AddHandler AppDomain.CurrentDomain.UnhandledException, AddressOf
Application_UnhandledException

Try
<instructions executed before the Application.Run>
Catch ex as Exception
MessaggioErrore.....
End Try

Application.Run(Main)
End Sub

After the Application.Run, exceptions' message errors will be managed with
the global handlers (thanks to the two initial AddHandler's). Could be
right?
Claudio
"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> ha scritto nel
messaggio news:uE**************@TK2MSFTNGP09.phx.gbl...
Claudio,
I tested my version under Windows 2003 Server (without VS.NET installed).

I get a dialog that states "Common Language Runtime Debugger services" with options to click OK to terminate & Cancel to debug.

I will see if I can find out more info...

However as I pointed out in my other post, the easy way around the other
message is to put a try/catch in your Sub Main.

Hope this helps
Jay

Nov 20 '05 #9
Claudio,
That is the way I am recommending.

Hope this helps
Jay
"Claudio Di Flumeri" <cl*****@mtgc.net> wrote in message
news:bv************@ID-198343.news.uni-berlin.de...
Jay,

Thanks for your replies! Till now I haven't found a way to "jump" the dialog with the debugger error (launching the .EXE file directly), anyway for what I've understood the better way to act is doing something like this:

Sub Main()

AddHandler Application.ThreadException, AddressOf
Application_ThreadException
AddHandler AppDomain.CurrentDomain.UnhandledException, AddressOf
Application_UnhandledException

Try
<instructions executed before the Application.Run>
Catch ex as Exception
MessaggioErrore.....
End Try

Application.Run(Main)
End Sub

After the Application.Run, exceptions' message errors will be managed with
the global handlers (thanks to the two initial AddHandler's). Could be
right?
Claudio
"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> ha scritto nel
messaggio news:uE**************@TK2MSFTNGP09.phx.gbl...
Claudio,
I tested my version under Windows 2003 Server (without VS.NET installed).
I get a dialog that states "Common Language Runtime Debugger services"

with
options to click OK to terminate & Cancel to debug.

I will see if I can find out more info...

However as I pointed out in my other post, the easy way around the other
message is to put a try/catch in your Sub Main.

Hope this helps
Jay


Nov 20 '05 #10

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

Similar topics

0
by: Derek Wolf | last post by:
I am having some difficulties implementing an UnHandledException handler for the AppDomain.UnhandledException event in a windows service for unhandled exceptions that occur on a System.Timers.Timer...
2
by: thechaosengine | last post by:
Hi everyone, Is there anyway to create some sort of catch-all in windows forms applications that could ensure that no unexpected exceptions bring down an application? For example, perhaps...
0
by: beanweed | last post by:
BACKGROUND ---------- I have an ASP.NET application having two panels. In one panel, an XML document, transformed using xsl, is displayed. In the other panel are some controls that allow a user...
2
by: VM | last post by:
Is it possible to intercept all exception errors into one Try...Catch? I've tried wrapping Application.Run() in a Try...Catch, but it doesn't seem to work all the time. Thanks.
11
by: Matt | last post by:
I have written a console application that runs as a batch job on Windows 2000 Server. Every once in a while I am getting an exception thrown to the console. Is there a way I can create a global...
3
by: kingski | last post by:
I have a web site created with ASP.NET 1.1. availability Global.asax: protected void Application_PreRequestHandlerExecute(Object sender, EventArgs e)
0
by: hynek.cihlar | last post by:
A strange behaviour thatI found in ASP.NET 2.0. I am trying to issue a callback request (handled by ICallbackEventHandler and RaiseCallbackEvent) and a regular GET request in the client browser...
1
by: Anonieko | last post by:
Global.asax? Use HttpModules Instead! In a previous post, I talked about HttpHandlers - an underused but incredibly useful feature of ASP.NET. Today I want to talk about HttpModules, which are...
2
by: yeghia \(sosy\) | last post by:
Hi Guys I have two questions. 1. Is there a way to set a handler to .NET application so that in case of not caught exception my handler is called before application shutdown. I want to send an...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...

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.