Rediret from global.asax under medium trust

I have this simple Application_Error method in my global.asax and it doesn't get redirected in case the exception happens under medium trust. Can someone tell me what is wrong here.

This code works fine under full trust

void Application_Error(object sender, EventArgs e)
    {
        Response.Redirect("~/error.aspx",false);

    }

      

0


a source to share


1 answer


Obviously, removing the spurious argument fixed this. It throws a security exception when doing a redirect, but it only redirects a fine



0


a source







All Articles