本文介绍了显示线程异常的context.Response.Redirect("mailto:" ..)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面给出的代码显示了从共享点列表中获取的toEmail,toCc,toBcc字段.
我正在使用Http处理程序来运行此代码.
但是发生的异常是:-由于代码已优化或本机框架位于调用堆栈的顶部,因此无法评估表达式"






The code given below shows toEmail,toCc,toBcc fields which are fetched from a sharepoint list.
I am using Http handler to run this code.
But the exception occuring is:--" Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack"






string message = "mailto:" + toEmail + "?cc =" + toCc +"&subject=" + subject + "&bcc=" + toBcc + "&body=" + body;

try
               {
                   context.Response.Redirect(message);

               }
               catch (Exception ex)
               {

               }

推荐答案



这篇关于显示线程异常的context.Response.Redirect("mailto:" ..)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 06:38