Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

TFS2012



  • I'm trying to setup a deployment and I'm having trouble connecting to our TFS2012 server to get the code. I get this error when the Server is set to the agent server...

    "An unexpected error occurred while attempting to connect. Exception has been thrown by the target of an invocation."

    I get this error when Server is set to the buildmaster server (non-agent)...

    "An unexpected error occurred while attempting to connect. Could not load file or assembly 'Microsoft.TeamFoundation.Client, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified."

    I installed the TFS2012 extention and it restarted the services, what else do I need to do?



  • Do you have Team Explorer installed on the agent server? Unfortunately, we're not allowed to distribute TFS DLL with the extension, so it must be installed for our code to use it.



  • What server do I need to install Team Explorer on, the agent or the main server?



  • The agent server would be all that's needed.



  • Does this mean I have to install Team Explorer on all of my agent servers?

    Isn't there a way to tell it to go to this file share and copy the code to this agent??



  • Team Explorer must be installed on any server in which you want to use the TFS Source Control actions on --- generally, this is just your build server.

    From your build server, you'd create an artifact of the build output, and deploy the artifact from there.



  • I installed on Team Explorer on the server that hosts the BuildMaster service, but I'm still having an issue.

    These are the steps i did...

    1. Setup a new activity by selecting: Source Control > Get Latest > Team Foundation Serv (TFS2012)

    2. Set Execute On Server to the machine that BuildMaster Service is running on. I set the target dir.

    3. Click the browse button to select the source path

    On step 3 I get this error: "An unexpected error occured: Exception has been thrown by the target of an invocation."

    Am I missing a step?



  • In case anyone else runs into difficulty with this, as I did, here are a couple of things to keep in mind:

    1. You WILL need to install Team Explorer 2012 on the server that will be connecting to TFS -- in my case, since I don't have a dedicated Build server, that means I needed to install Team Explorer BuildMaster server.

    2. Installing Team Explorer (http://www.microsoft.com/en-us/download/details.aspx?id=30656) WILL install a "shell" version of Visual Studio 2012. If (like me) you don't want extra tools like VS on your server, it's possible that you may only need the DLLs -- but according to Inedo support, that would be a violation of Microsoft's licensing rules for Team Explorer.

    3. In the "Server Name" field, you should enter the complete URL to the TeamProjectCollection you'll be working with, NOT just the main server or web access URL. In my case, this was http://tfs_host:8080/tfs/MyProjectCollection

    I hope these help someone else; it took a lot of guessing and finessing to figure all this out, as Inedo support reps really don't tend to explain things clearly AT ALL, at least if you're using their Free Support.



Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation