New answers tagged

0

Finally I found the solution. If the file is open in any client machine in Edit mode, then there is a lock created on it. Though most of the Lock related properties of SPFile are of not much help, the LockId property helps. It carries a GUID as a string, which means that the file actually has a lock. So calling the ReleaseLock method on the SPFile by passing ...


0

Using C# You must have wait for some time to check if the file is ready to use or not. Means you need to wait till lock status SPFile.SPLockType.None becomes true. Please check below code which applies System.Threading.Thread.Sleep(2000) for file to unlock. if (SPContext.Current == null) { //If the initial file length is 0, pause the ...


0

Usually Windows SharePoint Services puts a write lock on the document on the server when a document is opened. The write lock times out after 10 minutes. Users cannot modify the document during the time when the document is locked. Workaround: Check whether the file has been properly checked in or not. If not, refresh the page and try to check in the file ...


0

Solved by deleting c:\user\USERNAME\appdata\local\microsoft\office\termstores



Top 50 recent answers are included