简体   繁体   English

在SharePoint中“手动”解锁InfoPath表单

[英]'Manually' unlock an InfoPath form in SharePoint

We have a solution in which we use SharePoint 2007 to 'store' InfoPath forms in a FormLibrary. 我们有一个解决方案,其中使用SharePoint 2007将InfoPath表单“存储”在FormLibrary中。 We've created a .NET client application which uses InfoPaths FormControl to open and display the forms to the end-user. 我们创建了一个.NET客户端应用程序,该应用程序使用InfoPaths FormControl打开并向最终用户显示表单。

When the application shuts down normally, we close() the FormControl and a HTTP 204 (Unlock) is sent to SharePoint, which probably releases a lock it put on the form in question. 当应用程序正常关闭时,我们将FormControl封闭()并将HTTP 204(解锁)发送到SharePoint,这可能会释放它对相关表单的锁定。 However, when the application doesn't shut down normally (eg a crash of some kind), we find that the form cannot be opened anymore because it is 'locked by another user'. 但是,当应用程序无法正常关闭(例如某种崩溃)时,我们发现该表单无法打开,因为它已“被另一个用户锁定”。

This lock isn't of the "normal" Check-out type btw! 此锁不是“普通”退房类型!

How can I circumvent this issue, or how can I have the lock released? 如何解决此问题,或者如何释放锁?

MS recommends waiting 10 mins or rebooting the server. MS建议等待10分钟或重新启动服务器。
http://support.microsoft.com/kb/899709/en-us http://support.microsoft.com/kb/899709/en-us

Sometimes (mostly) that won't work so try out this code. 有时(大部分)无效,因此请尝试使用此代码。
http://www.codeproject.com/Articles/93965/Force-SharePoint-Document-Unlocked-Checked-In http://www.codeproject.com/Articles/93965/Force-SharePoint-Document-Unlocked-Checked-In

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM