无法因为code优化或本机框上调用堆栈的顶部,前评估pression [英] Unable to evaluate expression because the code is optimized or a native frame is on top of call stack

查看:139
本文介绍了无法因为code优化或本机框上调用堆栈的顶部,前评估pression的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在一个网站,用户进入并提交一些信息。信息提交后,我想送同时两封邮件 - 一到我的销售团队,一个在我的网站访问者

I am working on a website where user comes and submits some information. After the information is submitted I am trying to send two mails simultaneously - one to my sales team and one to the visitor on my website.

虽然电子邮件越来越送我收到以下错误,同时使用重定向到另一个页面的Response.Redirect(http://www.targetsite.com/index.php)

While the mails are getting sent I am getting the following error while redirecting to another page using Response.Redirect("http://www.targetsite.com/index.php"):

,因此无法在code进行了优化,以评估前pression或
  本地帧上调用堆栈顶部

Unable to evaluate expression because the code is optimized or a native frame is on top of call stack

任何人可以帮助我这个问题?先谢谢了。

Can anybody help me with this issue? Thanks in advance.

推荐答案

看看这个微软链接

从本质上讲,你需要改变你code如下:

Essentially you need to alter you code as follows:

Response.Redirect("http://www.targetsite.com/index.php", false)

这篇关于无法因为code优化或本机框上调用堆栈的顶部,前评估pression的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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