Select the profile curve first (the curve that determines the shape), shift select the path (the curve that determines the... well, path). Surface > Extrude.