I have a DataTable that i want to convert it to xml and then zip it, using DotNetZip. finally user can download it via Asp.Net webpage. My code in below
Have you tried to flush the stream before zipping?
dt.WriteXml(stream); stream.Flush(); ZipFile zipFile = new ZipFile();