at line like this which would give me an exception stating no error and here is the stack trace
The thread 0x1318 has exited with code 0 (0x0).
A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in CrystalDecisions.CrystalReports.Engine.dll
System.Transactions Critical: 0 : <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Unhandled exception</Description><AppDomain>InvoicesHost.vshost.exe</AppDomain><Exception><ExceptionType>System.Runtime.InteropServices.COMException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>
No error.</Message><StackTrace> at CrystalDecisions.ReportAppServer.Controllers.DatabaseControllerClass.ReplaceConnection(Object oldConnection, Object newConnection, Object parameterFields, Object crDBOptionUseDefault)
at CrystalDecisions.CrystalReports.Engine.Table.SetDataSource(Object val, Type type)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(DataTable dataTable)
at Invoices.InvoiceCreator.CreateInvoice(Int32 clientId, InvoiceType invoiceType, DateTime startDate, DateTime endDate) in C:\myfolder\Invoices\Invoices\InvoiceCreator.cs:line 254
at Invoices.InvoiceCreator.CreateOtherInvoices(DateTime startDate, DateTime endDate) in C:\myfolder\Invoices\Invoices\InvoiceCreator.cs:line 160
at Invoices.InvoiceCreator.CreateInvoices(DateTime invoiceDate) in C:\myfolder\Invoices\Invoices\InvoiceCreator.cs:line 63
at InvoicesHost.Program.Main(String[] args) in C:\myfolder\Invoices\InvoicesHost\Program.cs:line 27
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()</StackTrace><ExceptionString>System.Runtime.InteropServices.COMException (0x80000000):
No error.
at CrystalDecisions.ReportAppServer.Controllers.DatabaseControllerClass.ReplaceConnection(Object oldConnection, Object newConnection, Object parameterFields, Object crDBOptionUseDefault)
at CrystalDecisions.CrystalReports.Engine.Table.SetDataSource(Object val, Type type)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(DataTable dataTable)
at Invoices.InvoiceCreator.CreateInvoice(Int32 clientId, InvoiceType invoiceType, DateTime startDate, DateTime endDate) in C:\myfolder\Invoices\Invoices\InvoiceCreator.cs:line 254
at Invoices.InvoiceCreator.CreateOtherInvoices(DateTime startDate, DateTime endDate) in C:\myfolder\nvoices\Invoices\InvoiceCreator.cs:line 160
at Invoices.InvoiceCreator.CreateInvoices(DateTime invoiceDate) in C:\myfolder\Invoices\Invoices\InvoiceCreator.cs:line 63
at InvoicesHost.Program.Main(String[] args) in C:\myfolder\Invoices\InvoicesHost\Program.cs:line 27
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()</ExceptionString></Exception></TraceRecord>
The program '[7636] InvoicesHost.vshost.exe: Managed' has exited with code 0 (0x0).