System.threading.thread error occured
Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 14, 2011, 5:50 AM EDT
Is it a windows or a web based application, if it is a web based application than are you trying to do a response.redirect or response.end in the catch block? try to move that in the finally block.
Please do not forget to mark "Accepted Answer".