"File is locked for check-out by" problem

Feb 1, 2008 at 12:06 AM
Hi,

I just started using SvnBridge and it started working just fine, but then failed part way through my first commit. If I try to commit anything now it just crashes. If I debug, I can see the following error message:

An unhandled exception of type 'CodePlex.TfsLibrary.TfsFailureException' occurred in SvnBridge.exe

Additional information: The following errors occurred:
The item $/pixelbugs/External/Castle/Nullables.NHibernate.dll is locked for check-out by andypike_cp in workspace 480d757b-f08a-8740-9064-f2a6d503f1b8.

I found the following post that seems to be reporting the same thing: http://www.codeplex.com/SvnBridge/Thread/View.aspx?ThreadId=19782

Can you remove this temporary workspace for me so I might commit code to my project? Do you need any further information?

Thanks in advance

Andy
Feb 5, 2008 at 6:43 AM
I've removed your temporary workspaces so go ahead and give it another try.
Mar 5, 2009 at 2:41 PM
I am getting this same error, but it looks like for a different reason.  If someone else has the file checked out exclusively, and I'm trying to do a commit, it fails with this same message (e.g. The item $/xxx/yyy/zzz.sdf is locked for check-out by DOMAIN\user in workspace THEWORKSPACE.

The referenced user and workspace are someone else on my team.  Is an error the expected behavior, or a more informative message would be more appropriate (similar the message one would get when an SVN exclusive lock exists)?

Thanks!
-----------
Context: Performing a mass rename/edit
Below is the stacktrace (filename and user changed for privacy reasons):
CodePlex.TfsLibrary.TfsFailureException: The following errors occurred:
The item $/xxx/yyy/zzz.sdf is locked for check-out by DOMAIN\user in workspace THEWORKSPACE.
   at CodePlex.TfsLibrary.ObjectModel.SourceControlService.<>c__DisplayClass19.<PendChangesHelper>b__18()
   at CodePlex.TfsLibrary.ObjectModel.SourceControlService.WrapWebException(WrapWebExceptionDelegate function)
   at CodePlex.TfsLibrary.ObjectModel.SourceControlService.PendChangesHelper(IRepositoryWebSvc webSvc, String workspaceName, String username, ChangeRequest[] changes)
   at CodePlex.TfsLibrary.ObjectModel.SourceControlService.<>c__DisplayClass16.<PendChanges>b__15()
   at CodePlex.TfsLibrary.ObjectModel.SourceControlService.WrapWebException(WrapWebExceptionDelegate function)
   at CodePlex.TfsLibrary.ObjectModel.SourceControlService.PendChanges(String tfsUrl, ICredentials credentials, String workspaceName, IEnumerable`1 requests)
   at SvnBridge.SourceControl.TFSSourceControlProvider.<>c__DisplayClass31.<ProcessDeleteItem>b__30(Activity activity) in c:\Personal\Dev\svnbridge\SvnBridgeLibrary\SourceControl\TFSSourceControlProvider.cs:line 1270
   at SvnBridge.SourceControl.ActivityRepository.Use(String activityId, Action`1 action) in c:\Personal\Dev\svnbridge\SvnBridgeLibrary\SourceControl\ActivityRepository.cs:line 90
   at SvnBridge.SourceControl.TFSSourceControlProvider.ProcessDeleteItem(String activityId, String path) in c:\Personal\Dev\svnbridge\SvnBridgeLibrary\SourceControl\TFSSourceControlProvider.cs:line 1250
   at SvnBridge.SourceControl.TFSSourceControlProvider.<>c__DisplayClass4.<DeleteItem>b__3(Activity activity) in c:\Personal\Dev\svnbridge\SvnBridgeLibrary\SourceControl\TFSSourceControlProvider.cs:line 122
   at SvnBridge.SourceControl.ActivityRepository.Use(String activityId, Action`1 action) in c:\Personal\Dev\svnbridge\SvnBridgeLibrary\SourceControl\ActivityRepository.cs:line 90
   at SvnBridge.SourceControl.TFSSourceControlProvider.DeleteItem(String activityId, String path) in c:\Personal\Dev\svnbridge\SvnBridgeLibrary\SourceControl\TFSSourceControlProvider.cs:line 88
   at SvnBridge.Proxies.RemotingInvocation.Proceed() in c:\Personal\Dev\svnbridge\SvnBridgeLibrary\Proxies\RemotingInvocation.cs:line 73
   at SvnBridge.Proxies.RetryOnExceptionsInterceptor`1.Invoke(IInvocation invocation) in c:\Personal\Dev\svnbridge\SvnBridgeLibrary\Proxies\RetryOnExceptionsInterceptor.cs:line 27
   at SvnBridge.Proxies.RemotingInvocation.Proceed() in c:\Personal\Dev\svnbridge\SvnBridgeLibrary\Proxies\RemotingInvocation.cs:line 59
   at SvnBridge.Proxies.TracingInterceptor.Invoke(IInvocation invocation) in c:\Personal\Dev\svnbridge\SvnBridgeLibrary\Proxies\TracingInterceptor.cs:line 28
   at SvnBridge.Proxies.RemotingInvocation.Proceed() in c:\Personal\Dev\svnbridge\SvnBridgeLibrary\Proxies\RemotingInvocation.cs:line 59
   at SvnBridge.Proxies.ProxyFactory.RemotingProxy.Invoke(IMessage msg) in c:\Personal\Dev\svnbridge\SvnBridgeLibrary\Proxies\ProxyFactory.cs:line 46
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at SvnBridge.SourceControl.TFSSourceControlProvider.DeleteItem(String activityId, String path)
   at SvnBridge.Handlers.DeleteHandler.Delete(TFSSourceControlProvider sourceControlProvider, String path) in c:\Personal\Dev\svnbridge\SvnBridgeLibrary\RequestHandlers\DeleteHandler.cs:line 57
   at SvnBridge.Handlers.DeleteHandler.Handle(IHttpContext context, TFSSourceControlProvider sourceControlProvider) in c:\Personal\Dev\svnbridge\SvnBridgeLibrary\RequestHandlers\DeleteHandler.cs:line 19
   at SvnBridge.Handlers.RequestHandlerBase.Handle(IHttpContext context, IPathParser pathParser, NetworkCredential credentials) in c:\Personal\Dev\svnbridge\SvnBridgeLibrary\RequestHandlers\RequestHandlerBase.cs:line 46
   at SvnBridge.Net.HttpContextDispatcher.Dispatch(IHttpContext connection) in c:\Personal\Dev\svnbridge\SvnBridgeLibrary\Net\HttpContextDispatcher.cs:line 109
   at SvnBridge.Net.Listener.Process(TcpClient tcpClient) in c:\Personal\Dev\svnbridge\SvnBridgeLibrary\Net\Listener.cs:line 142
   at SvnBridge.Net.Listener.Accept(IAsyncResult asyncResult) in c:\Personal\Dev\svnbridge\SvnBridgeLibrary\Net\Listener.cs:line 93