groundFungus:
What solenoid are you using (datasheet)? What transistor are you using (datasheet)? How is the solenoid powered?
Replace the solenoid with a LED (with current limit resistor) to see if pin 9 is working.
I'm using exactly the same solenoid & transistor from the tutorial.
Post a photo of your wiring so that we can see how the transistor is wired. The power transistor pinout (in the diagram) is base, collector, emitter. The pinout of a 2N3904 is emitter, base, collector.