It's happened.

Dies soon as you let go of the key? Ballast resistor or bad ignition switch.