SharePoint 2010 沙盒解决方案超时
有没有办法调整 SharePoint 2010 沙箱解决方案的超时值?我认为默认为 30 秒。我有一个 Web 部件,有时运行时间会比这长一些。如果可以避免的话,我真的不想回到农场解决方案。
Is there a way to adjust the timeout value for a SharePoint 2010 sandbox solution? I think it defaults to 30 seconds. I have a web part that occasionally runs a little longer than that. I really would prefer not to fall back to a farm solution if I can avoid it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查找有关此内容的文档有点困难,但我在此处找到了它。相关部分如下:
以下代码可用于调整每个请求超时:
您应该能够通过如下方式调整 CPU 执行时间:
您必须重新启动 Microsoft SharePoint Foundation 沙盒代码服务才能使更改生效。
Finding the documentation on this was a little difficult, but I found it here. The relevant parts are these:
The following code can be used to adjust Per Request timeout:
You should be able to adjust the CPU Execution Time with something like the following:
You have to restart the Microsoft SharePoint Foundation Sandboxed Code Service for the changes to take effect.
在 PowerShell 中,您可以使用以下命令调整超时:
In PowerShell, you can adjust the timeouts using the following commands: