Which solenoid? What are the codes? Did you drop the pan and get a look at the magnet?
Had a relative throw a couple solenoid codes in his car. Turns out the torque converter puked and sent crud through the whole thing... Causing the valves to stick.