You used to be able to buy MIDI boxes which basically amplified or boosted the MIDI signal specifically for long cable runs. Philip Rees used to make one, but I don't know if they still do, and I never used one, but if you can locate one, it would solve your problem.
Orc