Question

We're running Sitecore 6.5 with a few TDS projects, and I've been trying to get TFS builds to work on our TFS Build server. We receive the following error when the projects attempt to build:

C:\Program Files (x86)\MSBuild\HedgehogDevelopment\SitecoreProject\v9.0\HedgehogDevelopment.SitecoreProject.targets (354): 
Exception Invalid License(Exception) in file sitecore\content.item. 
Stack trace: at HedgehogDevelopment.SitecoreProject.Tasks.CollectSitecoreItems.Execute()

We've installed TDS on the build server, and I've verified in the registry that the license key matches to our license. Not quite sure what might be the next step. Has anybody encountered this issue with TDS continuous integration builds before?

Was it helpful?

Solution

I appreciate that this is an old question but wanted to add this in case anyone else stumbles upon it.

I've been setting up TDS on Visual Studio Online (what was TFS Online) following this wonderful article from Michael Edwards: http://www.experimentsincode.com/?p=586

Although it's a bit vague at the end of the article - you can actually include the License info with a config file. You have to add this file manually here: C:\Program Files (x86)\MSBuild\HedgehogDevelopment\SitecoreProject\v9.0 Call the file TDSLicense.config

Save the following (with your license information in) in the file:

<?xml version="1.0" encoding="utf-8" ?>
<license Owner="CompanyName" Key="aaaa-bbb-ccc-dddd" />

If it's a permissions issue with reading the license from the registry - this should sort it out.

Micheal's blog post is well worth a read - it goes over and above what I've detailed here.

OTHER TIPS

I'm not exactly sure I have an answer, but 2 things that happen to me frequently are:

  1. The Hedgehog license expires once a month (not sure if that's my companie's agreement)
  2. Sometimes I can't use TDS sync unless I re-install the SiteCore connector. Luckily, there's a button built-in for that: just right-click on TDS in Visual Studio, and select "Install SiteCore connector".

Hope this helps.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top