Hi Ginny!
To start, stand with the bar about hip distance apart with your thumbs resting just outside of your thighs. Lift the bar up no higher than mid chest level(or more importantly, just before the point of discomfort).
Also, sometimes it is more comfortable to have your legs in a split stance rather then side by side when doing this exercise. To get into a split stance simply step back with one foot(but stay rolled up on the ball of the back foot for support, rather than having the foot flat on the floor).
If the pain still exists, replace the upright rows with shrugs and front raises. Hope this helps.