This project is read-only.

The custom tool 'TextTemplatingFileGenerator' failed

Dec 22, 2009 at 11:58 AM

Hi,

This is probably not Toolbox related, but do you guys know how to fix this problem? All of a sudden, my templates stopped working! When I "Run custom tool" it says The custom tool 'TextTemplatingFileGenerator' failed. Specified cast is not valid. I know I should repair my VS installation, but perhaps there is a simpler way?

Thanks!

ulu

Dec 22, 2009 at 5:54 PM

Ulu --

That sounds like a custom coding error, in the custom T4 Generator or Template.

That is just a guess.

I have found debugging template code tough and (more or less) blind.

I think there is a way to step-through-debug but I have yet to figure that out.

As such, I just make very small incremental changes to my T4 code.

Also, I catch execeptions aggressively and rethrow with added developer-friendly information.

HTH.

Thank you.

-- Mark Kamoski

Dec 26, 2009 at 8:26 AM

Mark,

Thanks for your reply!

The problem was not with this particular file, but with all tt files. And no, I wasn't using a custom generator.

Anyway, the problem was fixed by installing the latest Visual Studio SDK.

ulu