Melee can't have nice things, so as soon as the magic detects that the caster is using trappings of melee (armour, shields) it begins to call shenanigans. The concept of "arcane spell failure" was created to explain this phenomenon.