wolfbinary wrote:
redirection on an error failed to go to the error.aspx page
So, you are redirecting on Error Page from
global.asax
? Can you show us the code for Application_Error Secction ?
I guess you are using Response.Redirect From
Application_Error
.
This is the Problem related with IIS 7 and Its integration mode. Which mode you are using ?
Integrated or Classic
?
if Its Integrated mode and change to classic it may work.
Here[
^] I found a good solution [ The summary as below ]
Analysis :The problem is caused by changed behavior of IIS7 new integrated pipeline mode when calling Response.Redirect() in Application_Error. The default .net error page will be rendered before the actual redirection occurs due to error is detected.
Solution1. Remove the module definition of ScriptModule under system.webServer/modules in web.config. e.g:
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
Remove
Application_PreSendRequestHeader
and
Application_PreSendRequestContent
event handlers from
global.asax
if they are not used.
2.Call
Context.ClearError
or
Server.ClearError
to clear the error before using
Response.Redirect()
in
Application_Error
.
Hope this will help you :-D