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

HTTP Error

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!

--
George Kanchanavaleerat

Nov 19 '05 #1
11 1596
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" <Ge****@discussions.microsoft.com> wrote in message
news:00**********************************@microsof t.com...
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!

--
George Kanchanavaleerat

Nov 19 '05 #2
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 [ASP.NET MVP]" wrote:
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" <Ge****@discussions.microsoft.com> wrote in message
news:00**********************************@microsof t.com...
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!

--
George Kanchanavaleerat


Nov 19 '05 #3
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" wrote:
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 [ASP.NET MVP]" wrote:
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" <Ge****@discussions.microsoft.com> wrote in message
news:00**********************************@microsof t.com...
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!

--
George Kanchanavaleerat


Nov 19 '05 #4
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" <Ge****@discussions.microsoft.com> wrote in message
news:72**********************************@microsof t.com...
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 [ASP.NET MVP]" wrote:
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" <Ge****@discussions.microsoft.com> wrote in message
news:00**********************************@microsof t.com...
> 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!
>
> --
> George Kanchanavaleerat
>


Nov 19 '05 #5
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.To String & _
"&Dept=" &
PCCLists.DepartmentList.GetValue(ddlDepartment.Sel ectedValue).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 [ASP.NET MVP]" wrote:
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" <Ge****@discussions.microsoft.com> wrote in message
news:72**********************************@microsof t.com...
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 [ASP.NET MVP]" wrote:
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" <Ge****@discussions.microsoft.com> wrote in message
news:00**********************************@microsof t.com...
> 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!
>
> --
> George Kanchanavaleerat
>


Nov 19 '05 #6
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" <Ge****@discussions.microsoft.com> wrote in message
news:49**********************************@microsof t.com...
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.To String & _
"&Dept=" &
PCCLists.DepartmentList.GetValue(ddlDepartment.Sel ectedValue).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 [ASP.NET MVP]" wrote:
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" <Ge****@discussions.microsoft.com> wrote in message
news:72**********************************@microsof t.com...
> 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 [ASP.NET MVP]" wrote:
>
>> 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" <Ge****@discussions.microsoft.com> wrote in message
>> news:00**********************************@microsof t.com...
>> > 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!
>> >
>> > --
>> > George Kanchanavaleerat
>> >
>>
>>
>>


Nov 19 '05 #7
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 [ASP.NET MVP]" wrote:
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" <Ge****@discussions.microsoft.com> wrote in message
news:49**********************************@microsof t.com...
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.To String & _
"&Dept=" &
PCCLists.DepartmentList.GetValue(ddlDepartment.Sel ectedValue).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 [ASP.NET MVP]" wrote:
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" <Ge****@discussions.microsoft.com> wrote in message
news:72**********************************@microsof t.com...
> 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 [ASP.NET MVP]" wrote:
>
>> 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" <Ge****@discussions.microsoft.com> wrote in message
>> news:00**********************************@microsof t.com...
>> > 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!
>> >
>> > --
>> > George Kanchanavaleerat
>> >
>>
>>
>>


Nov 19 '05 #8
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" <Ge****@discussions.microsoft.com> wrote in message
news:10**********************************@microsof t.com...
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 [ASP.NET MVP]" wrote:
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" <Ge****@discussions.microsoft.com> wrote in message
news:49**********************************@microsof t.com...
>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.To String & _
> "&Dept=" &
> PCCLists.DepartmentList.GetValue(ddlDepartment.Sel ectedValue).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 [ASP.NET MVP]" wrote:
>
>> 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" <Ge****@discussions.microsoft.com> wrote in message
>> news:72**********************************@microsof t.com...
>> > 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 [ASP.NET MVP]" wrote:
>> >
>> >> 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" <Ge****@discussions.microsoft.com> wrote in message
>> >> news:00**********************************@microsof t.com...
>> >> > 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!
>> >> >
>> >> > --
>> >> > George Kanchanavaleerat
>> >> >
>> >>
>> >>
>> >>
>>
>>
>>


Nov 19 '05 #9
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" wrote:
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" <Ge****@discussions.microsoft.com> wrote in message
news:10**********************************@microsof t.com...
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 [ASP.NET MVP]" wrote:
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" <Ge****@discussions.microsoft.com> wrote in message
news:49**********************************@microsof t.com...
>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.To String & _
> "&Dept=" &
> PCCLists.DepartmentList.GetValue(ddlDepartment.Sel ectedValue).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 [ASP.NET MVP]" wrote:
>
>> 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" <Ge****@discussions.microsoft.com> wrote in message
>> news:72**********************************@microsof t.com...
>> > 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 [ASP.NET MVP]" wrote:
>> >
>> >> 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" <Ge****@discussions.microsoft.com> wrote in message
>> >> news:00**********************************@microsof t.com...
>> >> > 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!
>> >> >
>> >> > --
>> >> > George Kanchanavaleerat
>> >> >
>> >>
>> >>
>> >>
>>
>>
>>


Nov 19 '05 #10
http://www.microsoft.com/downloads/d...displaylang=en

--
HTH,

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

"George" <Ge****@discussions.microsoft.com> wrote in message
news:3D**********************************@microsof t.com...
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" wrote:
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" <Ge****@discussions.microsoft.com> wrote in message
news:10**********************************@microsof t.com...
> 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 [ASP.NET MVP]" wrote:
>
>> 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" <Ge****@discussions.microsoft.com> wrote in message
>> news:49**********************************@microsof t.com...
>> >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.To String & _
>> > "&Dept=" &
>> > PCCLists.DepartmentList.GetValue(ddlDepartment.Sel ectedValue).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 [ASP.NET MVP]" wrote:
>> >
>> >> 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" <Ge****@discussions.microsoft.com> wrote in message
>> >> news:72**********************************@microsof t.com...
>> >> > 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 [ASP.NET MVP]" wrote:
>> >> >
>> >> >> 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" <Ge****@discussions.microsoft.com> wrote in message
>> >> >> news:00**********************************@microsof t.com...
>> >> >> > 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!
>> >> >> >
>> >> >> > --
>> >> >> > George Kanchanavaleerat
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >>
>> >>
>> >>
>>
>>
>>


Nov 19 '05 #11
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" wrote:
http://www.microsoft.com/downloads/d...displaylang=en

--
HTH,

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

"George" <Ge****@discussions.microsoft.com> wrote in message
news:3D**********************************@microsof t.com...
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" wrote:
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" <Ge****@discussions.microsoft.com> wrote in message
news:10**********************************@microsof t.com...
> 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 [ASP.NET MVP]" wrote:
>
>> 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" <Ge****@discussions.microsoft.com> wrote in message
>> news:49**********************************@microsof t.com...
>> >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.To String & _
>> > "&Dept=" &
>> > PCCLists.DepartmentList.GetValue(ddlDepartment.Sel ectedValue).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 [ASP.NET MVP]" wrote:
>> >
>> >> 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" <Ge****@discussions.microsoft.com> wrote in message
>> >> news:72**********************************@microsof t.com...
>> >> > 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 [ASP.NET MVP]" wrote:
>> >> >
>> >> >> 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" <Ge****@discussions.microsoft.com> wrote in message
>> >> >> news:00**********************************@microsof t.com...
>> >> >> > 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!
>> >> >> >
>> >> >> > --
>> >> >> > George Kanchanavaleerat
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >>
>> >>
>> >>
>>
>>
>>


Nov 19 '05 #12

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

Similar topics

7
by: Michael Foord | last post by:
#!/usr/bin/python -u # 15-09-04 # v1.0.0 # auth_example.py # A simple script manually demonstrating basic authentication. # Copyright Michael Foord # Free to use, modify and relicense. #...
10
by: | last post by:
I am accessing the same error-containing ASP page on an ISP server using w2k IE6 but with different effect. On the first computer I get several line of HTML outputed by ASP, shown correctly by...
7
by: Paul | last post by:
I thought this is more of an IE issue but i've had no joy on that group perhaps somebody here will have a clue. If i click a link to a web page embedded in Excel (97 OR 2000) i get the standard...
8
by: Rene | last post by:
Hi, I'm spend many hour to fix this problem, read many articles about it but no article gave a solution. To isolate the problem I've created in IIS6 (WServer2003) a virtual directory test to...
8
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following error message: "The Web server reported...
8
by: Andreas Klemt | last post by:
Hello, I get this error Message "cannot redirect after http headers have been sent" when I do this response.redirect ("home.aspx") How can I find out with vb.net if already a http header has...
11
by: Tomas Kepic | last post by:
Hi, i'm trying to create my first ASP.NET project ( HelloASPWorld project) but an error occured when I put OK button in NewProject. ERROR: "The Web server reported the following error when...
0
by: Kirk | last post by:
I'm trying to use a Web Service to be a Remoting client of an existing ..NET 2.0 server. But I get the following error when I try to use System.Runtime.Remoting.Channels.Http in my WebService. ...
0
by: Lee88 | last post by:
In VB6, I am using the Web Browser Control's NavigateError Event to trap HTTP errors. It returns StatusCode, like "500", which is this: HTTP_STATUS_SERVER_ERROR 500 The server encountered...
16
by: Harry Simpson | last post by:
I've been away from ASPNET - I open up a new Web app in VS2008 and go into properties and select to use IIS instead of the personal web server. Then I run in debug mode and it says I have to set...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.