Redirect loop problems when calling page

Asked

Viewed 104 times

0

I made that if and is giving redirect loop. I removed the parameter false and continues. The page exists and etc...

if (Session["DsTipoUsuario"].ToString() == "1")
 {
     Response.Redirect("/frmGESStatusPriorizar.aspx", false);
 }

I used to give this error and it was the missing parameter false. Now stick with him, but only on this call.

  • Which error returns?

  • Redirect loop, this is the error

  • Testing Response.End(); after the Response.Redirect!

  • You are giving this error by giving a Response.End(): Unable to evaluate Expression because the code is Optimized or a Native frame is on top of the call stack.

  • Theoretically the Response.Redirect("pagina.aspx", false); would already end the test execution Server.Transfer or Server.Execute. Has a try catchin the method?

  • What’s on the page?

  • Try.. catch does, because everything I do I put in a Ry. .catch. The page loads a list of processes and the Manager only prioritizes processes to a particular analyst. Nothing special. I will put a break in it and put what is happening and resolve also put the answer.

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.