1

这是我在将自定义工作流部署到表单库时从 Sharepoint 收到的错误。工作流程非常简单,并没有做任何花哨的事情。我正在阅读信息路径表单,但此后剥离了所有非必要代码以查看是否可以使其正常工作。据我所知,其他工作流程都很好(我在同一个盒子上开发了其他工作流程,它们完好无损且正常运行)。工作流的设计视图如下:

替代文字 http://img5.imageshack.us/img5/7231/workflowv.jpg

成功创建任务后出现错误。这让我相信 while 循环存在问题,它正在等待一个布尔变量变为真(最初设置为假)。通常,当以任何方式更改任务时,将触发 changed 事件并将变量更改为 true,然后工作流将继续。我在此工作流程开始时收到此错误:

错误:在 TrackedRequests 中找不到请求。我们可能会在不同的线程上创建和关闭网络。ThreadId = 9,免费调用堆栈 = 在 Microsoft.SharePoint.SPRequestManager.Release(SPRequest request) 在 Microsoft.SharePoint.SPSite.Close()
在 Microsoft.SharePoint.SPSite.Dispose() 在 Microsoft.SharePoint.Workflow.SPWorkflowAutostartEventReceiver.AutoStartWorkflow (SPItemEventProperties 属性、Boolean bCreate、Boolean bChange、AssocType atyp)在 Microsoft.SharePoint.Workflow.SPWorkflowAutostartEventReceiver.ItemAdded(SPItemEventProperties properties) 在 Microsoft.SharePoint.Workflow.SPWorkflowAutostartEventReceiver.AutoStartWorkflow(SPItemEventProperties properties, Boolean bCreate, Boolean bChange) 在 Microsoft。 SharePoint.SPEventManager.RunItemEventRec...
...eiver(SPItemEventReceiver 接收器,SPItemEventProperties 属性,SPEventContext 上下文,字符串receiverData)在Microsoft.SharePoint.SPEventManager.RunItemEventReceiverHelper(对象接收器,对象属性,SPEventContext 上下文,字符串receiverData)在Microsoft.SharePoint.SPEventManager。<>c__DisplayClass8`1 .b__0() 在 Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state) 在 Microsoft.SharePoint.SPSecurity.RunAsUser(SPUserToken userToken, Boolean bResetContext, WaitCallback code, Object param)
在 Microsoft.SharePoint.SPSecurity.RunAsUser(SPUserToken userToken, CodeToRunElevated代码)
在 Microsoft.SharePoint.SPEventManager.InvokeEventReceivers[ReceiverType](SPUserToken userToken, RunEventReceiver runEventReceiver, Obj... ...ect 接收器, 对象属性, Boolean checkCancel) 在 Microsoft.SharePoint.SPEventManager.InvokeEventReceivers[ReceiverType](Byte[] userTokenBytes , RunEventReceiver runEventReceiver, Object receivers, Object properties, Boolean checkCancel) at Microsoft.SharePoint.SPEventManager.HandleEventCallback[ReceiverType,PropertiesType](Object callbackData) at Microsoft.SharePoint.Utilities.SPThreadPool.WaitCallbackWrapper(Object state) at System.Threading._ThreadPoolWaitCallback .WaitCallback_Context(Object state) 在 System.Threading.ExecutionContext.runTryCode(Object userData) 在 System.Runtime.CompilerServices.RuntimeHelpers。在 System.Threading.ExecutionContext.RunInternal(Execu..

我搜索了高低的解释,但找不到任何能具体解决这个问题的东西。这确实是一个简单的工作流程,没有什么特别的事情发生……也许是它所附加的表单库?

4

1 回答 1

0

We had the same problem and found a possible solution.

Although we were disposing our SPSite and SPWeb objects properly, we forgot to dispose the BinaryStream we took of the SPFile object.

We are still seeing the same problem on SharePoint Designer workflows, even when they contain no actions. I have started a separate thread for that issue.

于 2009-07-14T16:42:21.290 回答