There is so much that goes into soloing; the techniques, licks, etc. If the problem you are having is just remembering what you play, then I would suggest taking it in small bits and practice each part until you have it memorized. Don't move on to the next until it's ingrained in your fingers.
After doing this with a few solos you will notice how much quicker you can memorize licks and phrases. With time and patience it will get better that I can promise. :eek:
Is there a solo in mind you were trying to tackle?
Douglas Showalter