I have an application developed in Visual Studio 2010 incorporating the CSLA.Net framework and FileHelpers Library.
I am using the code below to read a csv file with the file helpers library. I have break points set on every line and it faults after the engine.BeginReadFile. I have tried both csv and txt files on the read function. I even commented out the method i have and used the sample method from filehelpers along with their sample code and received the same error. The code will not progress beyond the engine.BeginReadFile method. It does not make it to the foreach loop at all. the error i receive is :
System.Exception._COMPlusExceptionCode -532462766
I am not very familiar with Visual Studio, but I cannot find any further breakdown of this error. the code in question is below.
using (FileHelperAsyncEngine engine = new FileHelperAsyncEngine(typeof(ProductionSchedule)))
{
// To Read Use
engine.BeginReadFile(filename);
foreach (ProductionSchedule prodsched in engine)
{
// get the connection string properly once a database is available
using (SqlConnection connection = new SqlConnection(Settings.Default.ConnectionString))
{