ASIO4ALL only relates to audio, not MIDI. You do not need ASIO4ALL for recording MIDI, and having both ASIO4ALL and your Line 6 drivers installed could be a problem. I'd recommend uninstalling ASIO4ALL.
As to MIDI, it's not clear if you're using a controller, what type of controller, whether it's USB or 5-pin DIN, etc. or exactly how you're using MIDI.