询问者
使用 Toolbar.ExecuteAction() 保存Infopath抛错了,刷新后就好了,而且数据已经保存了.

问题
-
10/18/2012 15:46:02.38 w3wp.exe (0x0FB8) 0x20B0 SharePoint Foundation Logging Correlation Data xmnv Medium Site=/ 0fd3683f-c64d-4eff-8a0d-7aa80db12f41 10/18/2012 15:46:02.40 w3wp.exe (0x0FB8) 0x0F44 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Request (GET:http://MossServer/Meeting/_layouts/accessdenied.aspx?loginasanotheruser=true&Source=http%3A%2F%2Foa%2Egemhone%2Ecom%3A8088%2FMeeting%2FDocuments%2FForms%2FAllItems%2Easpx%3FRootFolder%3D%252fMeeting%252fDocuments%252f%25e8%25a1%258c%25e6%2594%25bf%25e4%25ba%25ba%25e4%25ba%258b%25e9%2583%25a8%26FolderCTID%3D0x0120004ED98A669E7183499F99EF76699016BC)) 10/18/2012 15:46:02.40 w3wp.exe (0x0FB8) 0x0F44 SharePoint Foundation Logging Correlation Data xmnv Medium Name=Request (GET:http://MossServer/Meeting/_layouts/accessdenied.aspx?loginasanotheruser=true&Source=http%3A%2F%2Foa%2Egemhone%2Ecom%3A8088%2FMeeting%2FDocuments%2FForms%2FAllItems%2Easpx%3FRootFolder%3D%252fMeeting%252fDocuments%252f%25e8%25a1%258c%25e6%2594%25bf%25e4%25ba%25ba%25e4%25ba%258b%25e9%2583%25a8%26FolderCTID%3D0x0120004ED98A669E7183499F99EF76699016BC) 7a9b10e0-e1f7-4f0e-bc24-910e65e4f1d9 10/18/2012 15:46:02.40 w3wp.exe (0x0FB8) 0x20B0 SharePoint Server State Service bm1k Medium StateSqlSession.GetItemBytesInternal() Locked row in database for key 9ea4402f181247f19cc2c41e70a0be4e_af87ed1d8fcc46dcbf952a20749ecdfa for 0 seconds 0fd3683f-c64d-4eff-8a0d-7aa80db12f41 10/18/2012 15:46:02.40 w3wp.exe (0x0FB8) 0x20B0 SharePoint Server State Service bm0w Unexpected StateManager.PeekState() Data locked (af87ed1d-8fcc-46dc-bf95-2a20749ecdfa) 0fd3683f-c64d-4eff-8a0d-7aa80db12f41 10/18/2012 15:46:02.40 w3wp.exe (0x0FB8) 0x0F44 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Request (GET:http://MossServer/Meeting/_layouts/accessdenied.aspx?loginasanotheruser=true&Source=http%3A%2F%2Foa%2Egemhone%2Ecom%3A8088%2FMeeting%2FDocuments%2FForms%2FAllItems%2Easpx%3FRootFolder%3D%252fMeeting%252fDocuments%252f%25e8%25a1%258c%25e6%2594%25bf%25e4%25ba%25ba%25e4%25ba%258b%25e9%2583%25a8%26FolderCTID%3D0x0120004ED98A669E7183499F99EF76699016BC)). 执行时间=1.4499 7a9b10e0-e1f7-4f0e-bc24-910e65e4f1d9 10/18/2012 15:46:02.40 w3wp.exe (0x0FB8) 0x20B0 SharePoint Foundation Runtime tkau Unexpected Microsoft.Office.Server.Administration.StateServiceLocalizedException: 处理您的请求时发生 Microsoft SharePoint Server State Service 错误。有关详细信息,请与服务器场管理员联系。 在 Microsoft.Office.Server.Administration.StateManager.PeekState(StateKey key) 在 Microsoft.Office.InfoPath.Server.DocumentLifetime.DocumentSessionStateManager.IsAbandoned(HttpContext context, EventLogStart eventLogStartEvent) 在 Microsoft.Office.InfoPath.Server.Controls.XmlFormView.IsDocumentAbandoned(EventLogStart eventLogStart) 在 Microsoft.Office.InfoPath.Server.Controls.XmlFormView.LoadStateFromPostback() 在 Microsoft.Office.InfoPath.Server.Controls.XmlFormView.OnInit(EventArgs e) 在 System.Web.UI.Control.InitRecursive(Control namingContainer) 在 System.Web.UI.Control.InitRecursive(Control namingContainer) 在 System.We... 0fd3683f-c64d-4eff-8a0d-7aa80db12f41 10/18/2012 15:46:02.40* w3wp.exe (0x0FB8) 0x20B0 SharePoint Foundation Runtime tkau Unexpected ...b.UI.Control.InitRecursive(Control namingContainer) 在 System.Web.UI.Control.InitRecursive(Control namingContainer) 在 System.Web.UI.Control.InitRecursive(Control namingContainer) 在 System.Web.UI.Control.InitRecursive(Control namingContainer) 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 0fd3683f-c64d-4eff-8a0d-7aa80db12f41 10/18/2012 15:46:02.40 w3wp.exe (0x0FB8) 0x0F44 SharePoint Foundation Monitoring nasq Medium
当我编辑Infopath后保存该infopath时,出现以上错误,但是我刷新页面后,一切正常.
一个类似的错误:
谢谢!
Anything is Possible!
- 已编辑 Harvey Jiang 2012年10月18日 8:10
全部回复
-
结果测试,发现个比较奇怪的问题:
function PreSend() { Toolbar.ExecuteAction("<%=XmlFormView1.ClientID%>", 'save', event); alert('审批完成.');//位置1 var IsChecked = CheckWorkflowAllActivities(); if (!IsChecked) { alert('请完善流程配置.'); return false; } alert('审批完成.');//位置2 return true; }
1. 如果我弹出了alert窗口,就没有错误提示,
2. 如果我把alert 放在位置2,还是出错,
3.var IsChecked = CheckWorkflowAllActivities();
if (!IsChecked) {
alert('请完善流程配置.');
return false;
} 当我把这段代码删除,仅执行保存infopath的代码时,如果没有alert,也同样出差哦。4.执行js抛出的服务端错误,影响到了后续操作,每次都先错一次,在刷新就好了,或者用个alert就好了.
Anything is Possible!
- 已编辑 Harvey Jiang 2012年10月18日 9:11
-
HI Havey,
这里ahi一篇英文博客的方法,你可能要用powershell 去设置下状态服务。
Essentially the process to create the State Service is the following:-
- Logon to SharePoint Farm
- Run the SharePoint Powershell Management Console
- Create the state service app by typing: $stateserviceApp = New-SPStateServiceApplication -Name "My State Service"
- Associate a database with the state service by typing: New-SPStateServiceDatabase -Name "MyStateServiceDatabase" -ServiceApplication $stateserviceApp.
- Associate a state service proxy to the state service by typing: New-SPStateServiceApplicationProxy -Name "My State Service Proxy" -ServiceApplication $stateserviceApp -DefaultProxyGroup.
This will create a State Service for your SharePoint farm.
For more information please see the following Technet Article
原文博客 (有可能打不开):http://blog.ithinksharepoint.com/2010/04/27/infopath-form-services-error-due-to-missing-state-service/
Thanks,
Jack
- 已标记为答案 Jack-GaoModerator 2012年10月26日 9:30
- 取消答案标记 Harvey Jiang 2012年11月1日 6:25
-
你好, Jack-Gao
刚才我使用该方法测试, 问题依旧.
管理中心默认已经存在:
State Service State Service 已启动 上述方法只是重新创建了 State service服务.
把alert("审批完成") 还是出现那样的错误. moss默认关闭了session,把session开启依旧.
谢谢.
Anything is Possible!