views:

330

answers:

3

I'm having a problem running a T4 template using TextTransform.exe on my build server. On my dev machine the template works perfectly. The error message is as follows.

error : Running transformation: System.TypeLoadException: Could not instantiate type System.Xml.Linq.XDocument

The build server has the windows 2008 SDK on it, my machine has VS 2008. I thought mayve it couldn't find System.Data.Xml so I ensure the dll was present in the same directory, but no luck. Any ideas?

+1  A: 

Sounds like your server may not have .NET 3.5 installed.

Needs to be 3.5 SP1
mcintyre321
A: 

I don't think it can be that. 3.5 is part of the 2008 SDK - and the build server has been building all our other 3.5 projects for months!

mcintyre321
+1  A: 

I installed .NET 3.5 SP1 and it corrected the problem

mcintyre321