A fully trained maintenance foreman was electrically shocked when EE was trouble shooting an electrical issue and came into contact with an energized frame of a loader. The injury was not the result of any compliance issues nor were any protective guards involved.