Hi George,
The second parameter indicates whether or not to continue processing the
first page.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
Thanks, Alvin! When I pass in a second parameter of "false", no more
the
exception is raised. What do you think may have caused error if no
parameter
is passed ?
Also, when I open the application in Visual Studio or running it for
the
first time, about 15 exceptions is raised each time. This isn't
normal,
is
it?
George
:
either remove the try catch block around the response.redirect or pass
in
a
second parameter of "false". the redirect causes the executing thread
to
abort by default
--
Regards,
Alvin Bruney
[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
available at
www.lulu.com/owc
_________________________
I made Try... Catch error handler over the event that fire just
before
the
page got transferred to next page. But nothing no exception is
thrown,
but
the # total exception count in Performance Monitor incremented all
the
same.
Below is the code just before the exception is raised:
Private Sub ddlDepartment_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
ddlDepartment.SelectedIndexChanged
Try
If ddlDepartment.SelectedIndex <> 0 Then
Dim WorkData As PCCBUSLIB.Work = PCCBUSLIB.Work.NewWork
WorkData.Department = ddlDepartment.SelectedValue
Session("WorkSearchCriteria") = WorkData
Response.Redirect("WorkSearchResult.aspx?cmd=" &
WorkSearchResult.cmdList.SearchWork.GetHashCode.ToString & _
"&Dept=" &
PCCLists.DepartmentList.GetValue(ddlDepartment.SelectedValue).DbID)
Else
lblMsg.Text = "Please select a department to search."
lblMsg.Visible = True
End If
Catch ex As Exception
Throw New Exception(ex.Message, ex.InnerException)
End Try
End Sub
Thanks again, Alvin!
:
in your global asax file or in your web page, you need to write an
error
handler. in the handler, you then need to capture the contents of
the
error
and email it to yourself. this is just one approach. in the global
page,
you
can get error information from context.error, in the page you have
access
to
the page variables. let us know what comes up
--
Regards,
Alvin Bruney
[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
available at
www.lulu.com/owc
_________________________
As far as I know, there is a hugh business layer logic, which
involves
reflection and other funky kind of stuff. I took it from a book.
Otherwise,
I followed pretty much the way recommended in MSDN help.
Also, if this error occurs after a Response.Redirect and
Page_Load
of
next
page runs, isn't it got to be Http problem ? I'm trying to spit
out
as
much
as I can without confusing everyone. Let me know more info about
what
I
can
provide. Thanks again !
George
:
i'm not buying. you must have something funky with your
application
that
you
aren't saying. start talking
--
Regards,
Alvin Bruney
[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
available at
www.lulu.com/owc
_________________________
Everytime when I redirect from one particular page to another,
it
will
raise
4 exceptions, before Page_Load routine runs. I can't figure
out
a
way
to
find out what are the exceptions. When I use Application
Center
Test,
number
of Http errors rises with the number of requests, so I suspect
those
are
Http
exceptions.
The worst part is that, when total number of exceptions
accumulated
to
certain extent, it seems to cause messive exceptions in
aspnet_wp.exe
process
(24000 per second), which easily max out the processor. I
can't
end
it
unless I manually kill the process.
I'm at a dead end, any advise will help, especially how I can
figure
this
problem, or what you think may cause this kind of error.
Thanks!