Question #93303
1 Answer
For part of the loop, dl is in the same direction as the magnetic field and for a different part of the loop, dl is opposite the magnetic field (so the dot product of B and dl is negative). You are correct that the enclosed current is zero, but that just means that when you add the pieces up around the loop, they add to zero.
For simplicity let the loop be a square with sides of length L and with the left and right sides parallel to B. When you look at the top and bottom pieces, adding up