HTTP Error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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!
 
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
_________________________
 
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

Alvin Bruney said:
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
_________________________
 
I also have implemented a http error reporting application, introduced
through MSDN. The app logs all errors on SQL Server, and sends me email
about the error. Perhaps it is that application, that has all the
exceptions... How do I verify ?

George K

George said:
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

Alvin Bruney said:
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
_________________________


George said:
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!
 
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
_________________________


George said:
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

Alvin Bruney said:
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
_________________________


George said:
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!
 
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!

Alvin Bruney said:
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
_________________________


George said:
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

Alvin Bruney said:
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!
 
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
_________________________


George said:
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!

Alvin Bruney said:
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
_________________________


George said:
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!
 
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

Alvin Bruney said:
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
_________________________


George said:
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!

Alvin Bruney said:
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!
 
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.

George said:
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

Alvin Bruney said:
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
_________________________


George said:
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!
 
Kevin,
So the page raises error because it has to terminate certain operation,
when it has not completed it, like Page.Unload. But I don't have
Page.Unload routine on the page, so may be there's some implicit Page.Unload
operations if you don't specify one. On an ASP.NET book, I see that the only
operations done after page change events are Page.Unload, and sending the new
page to client. How can I learn more about this ?

Kevin Spencer said:
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.

George said:
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

Alvin Bruney said:
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!
 
http://www.microsoft.com/downloads/...A6-3647-4070-9F41-A333C6B9181D&displaylang=en

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

George said:
Kevin,
So the page raises error because it has to terminate certain operation,
when it has not completed it, like Page.Unload. But I don't have
Page.Unload routine on the page, so may be there's some implicit
Page.Unload
operations if you don't specify one. On an ASP.NET book, I see that the
only
operations done after page change events are Page.Unload, and sending the
new
page to client. How can I learn more about this ?

Kevin Spencer said:
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.

George said:
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!
 
Thanks for the framework SDK link. It said it is included in Visual Studio
2003 which is what I'm using, so I didn't download it. I'll find out about
the questions below on my own. Thanks.

George

Kevin Spencer said:
http://www.microsoft.com/downloads/...A6-3647-4070-9F41-A333C6B9181D&displaylang=en

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

George said:
Kevin,
So the page raises error because it has to terminate certain operation,
when it has not completed it, like Page.Unload. But I don't have
Page.Unload routine on the page, so may be there's some implicit
Page.Unload
operations if you don't specify one. On an ASP.NET book, I see that the
only
operations done after page change events are Page.Unload, and sending the
new
page to client. How can I learn more about this ?

Kevin Spencer said:
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!
 
Back
Top