As I mentioned above, I have no clue what your setup is like, but I do know that the coil inside that standard, off the shelf solenoid is rated for momentary duty only. If this type of solenoid were wired to be ON when the key was ON, it would fail in short order...maybe even with smoke and flames!

There is a part of the information puzzle that is missing from the original question.

Stuart