I am just getting into Crystal Reports and I am using C#. My code runs fine and does what I expect, but when I close the program it gives me an "Unhandled Win32 Exception" error.
Code:
C# Code:
OleDbConnection Conn = new OleDbConnection(connString);
Graph graph = new Graph();
OleDbDataAdapter adapter = new OleDbDataAdapter(query, connString);
DataSet1 Ds = new DataSet1();
Conn.Open();
adapter.Fill(Ds, "AMGR_Client_Tbl");
//If I comment out the below line, the error goes away
graph.SetDataSource(Ds.Tables["AMGR_Client_Tbl"]);
Conn.Close();
Note the comment in the code. The above is not all of my code, but I do not get the error if I comment out the SetDataSource line.
Has anyone had this issue? I've tried Googling it, but everyone seems to be pointing at some A.SP (Ignore the period) policy in the IIS web settings. Mine is a standalone desktop application.