1

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

1
  • i move SPUtility.TransferToSuccessPage outside the try block and it works fine
    – sbtahir
    Commented Apr 5, 2010 at 11:01

1 Answer 1

1

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

1
  • yes you are Right John
    – sbtahir
    Commented Apr 21, 2010 at 6:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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