2
Vote

Cant find team project (tfs2010)

description

When running NUnitTfs it can't find my team project. I have checked the spelling an the name is MyProject. Does I need to specify the team collection name somewhere? Any suggestions?

Version: 2.0 Alpha.

C:\Users\myuser>C:\Builds\2\MyProject\ContinuousIntegration\Sources\MyProject\devel\main\Dependencies\nunit4teambuild\NUnitTfs.exe -n C:\Builds\2\MyProject\ContinuousIntegration\TestResults\nunit-tests.xml -t MyProject -b "ContinuousIntegration_20110804.7" -v 2010 -p "Any CPU" -f Debug

Loading NUnit Output from C:\Builds\2\MyProject\ContinuousIntegration\TestResults\nunit-tests.xml...
Transforming NUnit output to .trx file...
Adding build information to .trx file...
Publishing .trx file...
System.ServiceModel.FaultException: TF200016: The following project does not exist: MyProject. Verify that the name of the project is correct and that the project exists on the specified Team Foundation Server.

Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at KWatkins.NUnitTfs.Tfs2010.BuildServiceV3.BuildWebServiceSoap.QueryBuilds(BuildDetailSpec[] specs)
at KWatkins.NUnitTfs.Tfs2010.Publisher2010.GetBuildDetails() in C:\Users\Kevin Watkins\Documents\Visual Studio 10\Projects\NUnitTFS\NUnitTFS\Tfs2010\Publisher2010.cs:line 333
at KWatkins.NUnitTfs.Tfs2010.Publisher2010.PublishToTfs(XDocument trx) in C:\Users\Kevin Watkins\Documents\Visual Studio 10\Projects\NUnitTFS\NUnitTFS\Tfs2010\Publisher2010.cs:line 26
at KWatkins.NUnitTfs.Program.Main(String[] args) in C:\Users\Kevin Watkins\Documents\Visual Studio 10\Projects\NUnitTFS\NUnitTFS\Program.cs:line 29

comments

RolfT wrote Aug 4, 2011 at 11:49 AM

Ups. Endpoint address in NUnitTfs.exe.config should include the team collection name. Link this:

rbanks54 wrote Nov 24, 2011 at 3:18 AM

Remvoe the collection names from the endpoint addresses in the config file. They're not needed.

MattC7 wrote Oct 25, 2012 at 5:19 PM

I get this error but haven't added the teamcollection name to the endpoints:

C:\Program Files (x86)\NUnit\publishing\NUnitTfs.exe -n "\server5\builds\NUnit Trunk Middleware\NUnit Trunk Middleware_20121025.9\logs\RiskTests.dll.ResultXml.xml" -t "Distributed System" -p "Any CPU" -f "Release" -b "NUnit Trunk Middleware_20121025.9" -v 2010
System.ServiceModel.FaultException: TF200016: The following project does not exist: Distributed StarTrade. Verify that the name of the project is correct and that the project exists on the specified Team Foundation Server.
My endpoints are:
<!-- TFS 2010 services. -->
        <endpoint address="http://server5:8080/tfs/TestManagement/v1.0/TestResults.asmx"
         binding="basicHttpBinding" bindingConfiguration="TestResultsServiceSoap"
         contract="Tfs2010.TestResultsServiceV1.TestResultsServiceSoap" name="TestResultsServiceSoap" />

        <endpoint address="http://server5:8080/tfs/Services/v3.0/IdentityManagementService.asmx"
         binding="basicHttpBinding" bindingConfiguration="IdentityManagementWebServiceSoap"
         contract="Tfs2010.IdentityManagementServiceV3.IdentityManagementWebServiceSoap"
         name="IdentityManagementWebServiceSoap" />

        <endpoint address="http://server5:8080/tfs/Build/v3.0/BuildService.asmx"
         binding="basicHttpBinding" bindingConfiguration="BuildWebServiceSoap"
         contract="Tfs2010.BuildServiceV3.BuildWebServiceSoap" name="BuildWebServiceSoap" />

MattC7 wrote Oct 25, 2012 at 5:24 PM

Ah, nevermind, in my case I HAD to add the teamcollection.