Foot and Knee Pain

Options
I've noticed that I have substantial foot and knee pain after walking on my treadmill for 45 min, where as I do not when I jog for 20 to 30 min. I don't understand this. Anyone else notice issues like this? Or have any ideas as to why?