问题描述
大家好,
我使用下面的行,但是在访问共享点列表时,我收到由于代码已优化或本机框架位于调用堆栈的顶部,因此无法评估表达式."
< pre> SPUtility.Redirect(site.Url +"/List/Map/AllItems.aspx",SPRedirectFlags.Trusted,HttpContext.Current,string.Empty);</pre>
任何帮助表示赞赏.
谢谢,
Manowj.
Hi Everyone,
I''m using the below line, but while accessing the sharepoint list i''m receiving "Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack."
<pre>SPUtility.Redirect(site.Url + "/List/Map/AllItems.aspx", SPRedirectFlags.Trusted, HttpContext.Current, string.Empty);</pre>
Any help is appreciated.
Thanks,
Manowj.
推荐答案
SPUtility.Redirect Method (String, SPRedirectFlags, HttpContext)
如果这样做没有帮助,请尝试使用默认值而不是SPRedirectFlags的Trusted
If that doesn''t help then try using Default rather than Trusted for SPRedirectFlags
这篇关于使用SPUtility的未知错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!