SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

in my application page when i m using Sputility.transffertosuccesspage ,its throw an exception, " Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack. " The same exception was also occur if we use response.redirect(abc.aspx); but we can resolve this exception with (abc.aspx,false) but how to solve Sputility.transffertosuccesspage exception.

Thanks SAAD

share|improve this question
i move SPUtility.TransferToSuccessPage outside the try block and it works fine – sbtahir Apr 5 '10 at 11:01

If I recall correctly, I believe these methods throw a ThreadAbortException. I'd move them out of your try\catch block.

share|improve this answer
yes you are Right John – sbtahir Apr 21 '10 at 6:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.