Won't be under the frame. Just take your time and follow that positive lead. Probably going to hard to get to if it is anything like the Gravely mowers here.
If you need the solenoid try this link.
Ariens 05167200 Replacement Solenoid
Hmmm new style solenoid. Adding new solenoid, terminals, and housing to my local inventory.