Suppose there is a vector field A. Now the line integral over some curve c equals double integration of curl A over surface S enclosed by C. Now if we put the divergence theorem in this then it becomes triple integral of divergence of curl Adv over the volume enclosed by the surface. Now divergence of curl of vector A becomes zero. Now so the volume integral should be zero. So the surface and line integral is also zero. So we can do this for any line integral (where the vector is defined in the surface). So does it imply all line integrals are zero. Where am I doing the mistake? Sorry for mathjax.
In order to apply the divergence theorem, your surface $S$ needs to enclose a solid. This, in particular, implies that $S$ itself has no boundary. But using Stokes's theorem relates the integral over a surface to an integral over its boundary. Thus, there is no surface $S$ for which both theorems apply.