显示线程异常的context.Response.Redirect("mailto:" ..) [英] context.Response.Redirect("mailto:"..) showing Thread Exception

查看:85
本文介绍了显示线程异常的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)
               {

               }

推荐答案

此链接应为您提供帮助 [ ^ ]


请注意mailto:....它与.aspx等其他重定向一起使用,但与mailto无关..
Please take care of mailto:....it is working with other redirect like .aspx...but not with mailto..


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆