Hi Pete, I'm not sure. Did you try everything in this list? Otherwise post your .sln and dynamo files.
1) May sure that you only have 1 version of Dynamo installed that is at least 2.X
2) Make sure that dynamo is in automatic mode, you have to manually set it in dynamo, I would think that:
Dynamo.Applications.JournalKeys.AutomationModeKey, true.ToString()
would force it to automatic mode, but it doesn't, you have to manually change that.
3) Make sure you've referenced all of the .dlls in the list.