Why am I receiving a 'an unhandled exception of type system executionengineexception occurred in system data dll' error?


  • I am writing a custom component (DLL) for SQL Server Integration services and when trying to debug the component I receive the following error:

    An unhandled exception of type 'System.ExecutionEngineException' occurred in System.Data.dll

    When I run the component without debugging I don't receive this error and the piece of code that sets off this error when debugging is the second line of this code:

    DataTable table;
    table = new DataTable();

    I have tried running this:
    but I still get the error.

    I also created a simple windows form project with the following code:

    DataTable table;
    table = new DataTable();
    table.Columns.Add("Dosage", typeof(int));
    table.Columns.Add("Drug", typeof(string));
    table.Columns.Add("Patient", typeof(string));
    table.Columns.Add("Date", typeof(DateTime));
    table.Rows.Add(25, "Indocin", "David", DateTime.Now);
    table.Rows.Add(50, "Enebrel", "Sam", DateTime.Now);
    table.Rows.Add(10, "Hydralazine", "Christoff", DateTime.Now);
    table.Rows.Add(21, "Combivent", "Janet", DateTime.Now);
    table.Rows.Add(100, "Dilantin", "Melanie", DateTime.Now);

    and I don't encounter the error when I'm debugging. Does anyone know why I am getting this error and how to I can debug my code?

    Friday, October 18, 2013 11:20 PM

All replies

  • Debug where? Ma

    Seems it must be

    Arthur My Blog

    Monday, October 21, 2013 7:10 PM