Mileage on this trans if known?
Any recent repair work?
You can not place a 700r4 non electronic trans into this truck easy... the ECM looks for feedback from the 4L60E trans. No feedback = trouble codes set.
I doubt you have a shift solenoid problem since there are only two shift solenoids in this trans that perform double duty for shifting 1 - 2 - 3 - 4.
I would suspect a worn out 2-4 band with a high mileage trans
Some people are like Slinkies... Not really good for anything, but they still bring a smile to your face when you push them down a flight of stairs.