TFS throwing unexpected error when commiting

May 10, 2008 at 1:06 AM
I get the following error when trying to comit to ValidationFramework. @ 5/9/08 8:58:55 EST

System.Web.Services.Protocols.SoapException: TF10217: Team Foundation was unable to complete your request due to an unexpected error. For more details, see the event log on the Team Foundation Server.
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at CodePlex.TfsLibrary.RepositoryWebSvc.Repository.QueryWorkspaces(String ownerName, String computer)
   at CodePlex.TfsLibrary.ObjectModel.SourceControlService.<>c__DisplayClass13.<GetWorkspaces>b__12()
   at CodePlex.TfsLibrary.ObjectModel.SourceControlService.WrapWebException[T](WrapWebExceptionDelegate`1 function)
   at CodePlex.TfsLibrary.ObjectModel.SourceControlService.GetWorkspaces(String tfsUrl, ICredentials credentials, WorkspaceComputers computers)
   at SvnBridge.SourceControl.TFSSourceControlProvider.ClearExistingTempWorkspaces(Boolean skipExistingActivities)
   at SvnBridge.SourceControl.TFSSourceControlProvider.MakeActivity(String activityId)
   at SvnBridge.Proxies.RemotingInvocation.Proceed()
   at SvnBridge.Proxies.TracingInterceptor.Invoke(IInvocation invocation)
   at SvnBridge.Proxies.RemotingInvocation.Proceed()
   at SvnBridge.Proxies.RetryOnExceptionsInterceptor`1.Invoke(IInvocation invocation)
   at SvnBridge.Proxies.RemotingInvocation.Proceed()
   at SvnBridge.Proxies.ProxyFactory.RemotingProxy.Invoke(IMessage msg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at SvnBridge.Interfaces.ISourceControlProvider.MakeActivity(String activityId)
   at SvnBridge.Handlers.MkActivityHandler.Handle(IHttpContext context, ISourceControlProvider sourceControlProvider)
   at SvnBridge.Handlers.HttpContextHandlerBase.Handle(IHttpContext context, IPathParser pathParser)
   at SvnBridge.Net.HttpContextDispatcher.Dispatch(IHttpContext connection)
   at SvnBridge.Net.Listener.Process(TcpClient tcpClient)
   at SvnBridge.Net.Listener.Accept(IAsyncResult asyncResult)

any ideas?
May 10, 2008 at 3:02 PM
Turns out I was using the wrong username. Don't know if its under your control since its tfs but maybe this error can be made more clear?
Jun 2, 2008 at 9:28 PM
can you reproduce this issue?
Apr 23, 2009 at 6:08 AM
I am getting this issue as well. TFS Error TF10217.

The error from the event log is
The specified path, file name, or both are too long. The fully
qualified file name must be less than 260 characters, and the directory
name must be less than 248 characters

The file it is failing on has a full path length of 166 characters relative to source control root and 122 characters locally on my PC both of which are well with in the limits mentioned above.

I can check in (commit) everything else in the project so its not an authorisation issue.

I am using NetBeans 6.5 as the IDE with Subversion as the source control.

Here is the event log entry from the TFS server
TF53010: The following error has occurred in a Team Foundation component or extension:
Date (UTC): 23/04/2009 5:46:20 a.m.
Machine: TFS01
Application Domain: /LM/W3SVC/344504167/ROOT/VersionControl-1-128849212905413221
Assembly: Microsoft.TeamFoundation.VersionControl.Server, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727
Process Details:
Process Name: w3wp
Process Id: 6940
Thread Id: 7528
Account name: DEV\WDENTON

Detailed Message: TF14105: An exception occurred in the Team Foundation Source Control System.
Web Request Details
Url: http://tfs01:8080/VersionControl/v1.0/repository.asmx [method: POST]
User Agent: CodePlexClient
Headers: Content-Length=873&Content-Type=text%2fxml%3b+charset%3dutf-8&Authorization=Negotiate+encodedgarbageremoved&Expect=100-continue&Host=devfiswintfs01%3a8080&User-Agent=CodePlexClient&
Path: /VersionControl/v1.0/repository.asmx
Local Request: False
Host Address:
User: DEV\WDENTON [authentication type: Negotiate]

Exception Message: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. (type PathTooLongException)

Exception Stack Trace: at Microsoft.TeamFoundation.VersionControl.Server.Validation.checkLocalItem(String& item, String parameterName, Boolean allowNull, Boolean allowWildcards, Boolean allow8Dot3Paths, Boolean checkReservedCharacters)
at Microsoft.TeamFoundation.VersionControl.Server.ItemSpec.Validate(String parameterName)
at Microsoft.TeamFoundation.VersionControl.Server.Validation.check(IValidatable obj, String parameterName, Boolean allowNull)
at Microsoft.TeamFoundation.VersionControl.Server.ChangeRequest.Validate(String parameterName)
at Microsoft.TeamFoundation.VersionControl.Server.Validation.check(IValidatable obj, String parameterName, Boolean allowNull)
at Microsoft.TeamFoundation.VersionControl.Server.Validation.check(IValidatable[] array, String parameterName, Boolean allowEmpty)
at Microsoft.TeamFoundation.VersionControl.Server.Repository.PendChanges(String workspaceName, String ownerName, ChangeRequest[] changes, Int32 pendChangesOptions, Int32 supportedFeatures, List`1& failures)

Apr 23, 2009 at 6:15 AM
I managed to add the files manually through Visual Studio, deleted them from my project, then did an update from NetBeans. This pulled the files back down into the project and all is well again.
Apr 28, 2009 at 4:25 AM
This should be fixed when using the v4 version of SvnBridge.
Apr 28, 2009 at 5:36 AM
now that what i call a quick fix, a new version within a day of noticing a problem! New version work great!