I usually have better luck merging vertices rather than edges. If that doesn't work, make sure the normals are pointed in the same direction.