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

    Question

  • 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: 
    http://www.microsoft.com/en-au/download/details.aspx?id=30135
    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 http://stackoverflow.com/questions/19460442/why-am-i-receiving-a-an-unhandled-exception-of-type-system-executionengineexcep


    Arthur My Blog

    Monday, October 21, 2013 7:10 PM