过期的会话不会从ASP.NET会话状态数据库中删除-损坏的Web部件 [英] Expired Sessions are not being Deleted from the ASP.NET Session State Database - Broken Web Parts

查看:55
本文介绍了过期的会话不会从ASP.NET会话状态数据库中删除-损坏的Web部件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们最近浏览了SharePoint 2010 Health Analyzer条目并确定了以下项目:

We have recently gone through our SharePoint 2010 Health Analyzer entries and identified the item:

未从ASP.NET会话状态数据库中删除过期的会话

Expired Sessions are not being Deleted from the ASP.NET Session State Database

遵循指南

Following the guide https://blogs.msdn.microsoft.com/briangre/2013/09/09/expired-sessions-are-not-being-deleted-from-the-asp-net-session-state-database/ states that we need to disable and then re-enable SPSessionStateService using the following PowerShell commands:

Disable-SPSessionStateService
Enable-SPSessionStateService DefaultProvision

命令已成功完成,但是我们发现了 XsltListViewWebPart现在显示以下错误的问题:

The commands completed successfully but we have identified a problem where an XsltListViewWebPart now displays the following error:

无法显示此Web部件.若要解决此问题,请在Microsoft SharePoint Foundation兼容的HTML编辑器(例如Microsoft SharePoint Designer)中打开此网页.如果问题仍然存在,请与Web服务器管理员联系.

Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator.

相关ID:<<一些相关性ID>>

Correlation ID: << some correlation ID >>

如果我们在SharePoint Designer中打开网站并仅保存页面(不进行任何编辑),我们可以刷新页面,并且Web部件可以正常工作...

If we open the site in SharePoint Designer and simply save the page (without any editing) we can refresh the page and the web part works fine...

此外,如果我们离开该网站(例如,晚上回家然后第二天再返回该网站),则该Web部件将再次停止工作.如果我们在SharePoint Designer中将其重新打开并保存,则它将再次正常工作.

Additionally, if we leave the site (e.g. go home for the night and come back to it the next day) then the web part stops working again. If we open it back in SharePoint designer and save then it works fine again.

需要强调的是,我们实际上只是运行上述命令来禁用然后重新启用SPSessionStateService(并确保该帐户在SQL Server上具有正确的权限).

To stress, we have literally only just ran the above command to disable and then re-enable the SPSessionStateService (and made sure the account has the right permissions on SQL server).

我倾向于我们已经进行了更改,现在某个地方有些混乱……并且我们正在处理会话"问题. Web部件丢失了会话,然后似乎无法重新获得它(但不确定如何保存"会话). 通过Designer的Web部件可以解决此问题,尽管是暂时的)?

I'm leaning towards the fact we've made this change and now something's messed up somewhere... and with the fact we're dealing with "session" stuff, that the web part loses the session and then can't seem to regain it (but not sure how "saving" the web part through Designer would fix this, albeit temporarily)?

推荐答案

嗨Chris Loweth,

它可能有多种原因.您可以使用相关性ID"来查找有关此问题的详细消息.关联ID可以帮助SharePoint管理员跟踪什么 是在发生错误时发生的.

It could have multiple causes. You can use Correlation ID to find out detailed message about this issue. The Correlation ID can help a SharePoint Admin trace what was happening at the time of an error.

可能的原因:

1. 2013年7月9日,Windows 7 Service Pack 1和Windows Server 2008 R2 Service Pack 1上.NET Framework 3.5.1的安全更新KB2844286.

2. XSL转换的一秒钟默认阈值.超时导致修改的XSLTListView Web部件和XSLTDataView Web部件有时显示无法 显示此Web部件"错误.

2. One second default threshold for XSL-transformation. The timeout causes modified XSLTListView Web Parts and XSLTDataView Web Parts to sometimes show the "Unable to display this Web Part" errors.

此处是有关无法显示此Web部件."的文章. ".错误供您参考:

最好的问候,

Linda Zhang


这篇关于过期的会话不会从ASP.NET会话状态数据库中删除-损坏的Web部件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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