I don't even know where to begin with this.

First off, if the ranger is an archer, Windwall. wham, bam, done. Second, if the ranger is a TWF, just treat him like a fighter.
Any number of save or die spells, battlefield control, celerity, summons, teleports will absolutely end the encounter.

As for dispel Magic and Anti-magic field, he does realize that both of those are wizard spells, not avialable to the ranger except as items? an optimized wizard will be able to easily make the caster level check for dispel magic vs. a ranger, and as far as the anti-magic field, a tinfoil cone hat solves that problem quite nicely. Also Orb of X line of spells for dealing direct damage if it's emanating directly on the ranger.