使用SPUtility的未知错误 [英] Unknown error using SPUtility

查看:127
本文介绍了使用SPUtility的未知错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我使用下面的行,但是在访问共享点列表时,我收到由于代码已优化或本机框架位于调用堆栈的顶部,因此无法评估表达式."

< 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.

推荐答案

由于您没有查询字符串参数要添加尝试使用此方法的其他重载

Since you have no query string parameters to add try using the other overload for this method

SPUtility.Redirect Method (String, SPRedirectFlags, HttpContext)



如果这样做没有帮助,请尝试使用默认值而不是SPRedirectFlags的Trusted



If that doesn''t help then try using Default rather than Trusted for SPRedirectFlags


这篇关于使用SPUtility的未知错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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