Hi,

I get an exception when I run this code:

Code:
        try
        {

             ArrayList arrayList = new ArrayList();
            TicketBL ticket = new TicketBL();
            arrayList = ticket.GetTicketsForOffline();

            FileStream fs = new FileStream(FILE_PATH, FileMode.Create);
            XmlSerializer serializer = new XmlSerializer(typeof(ArrayList));
            serializer.Serialize(fs, arrayList); <--System.InvalidOperationException: There was an error generating the XML document. 
            fs.Close();
            MessageBox.Show("List Pull complete");
        }
        catch (Exception ex)
        {
            MessageBox.Show("Error Pulling list", ex.ToString());
        }
The file creates the .xml file but doesn't serialize the data.

Any thoughts?