Your transmission is electronically shifted (controlled by a computer), the solenoids are electrically operated valves that allow the computer to control when the transmission shifts, there are different codes for different issues, and you need to know which of the codes you're getting to be able to diagnose where the problem lies.
The actual problem can range from a defective solenoid, wiring or the computer itself, to blocked passages in the valve body of the transmission or other internal issues in the transmission