How do I track down this error??? A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in xxx.exe

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hello All,

Back once again with a problem that prohibits me from adding records to an Access database. What I'm doing is reading and parsing a comma delimited
file and adding each record to the database. I get this error "A first chance exception of type 'System.Runtime.InteropServices.COMException'
occurred in xxx.exe.". (xxx.exe is my program) I tried looking into the exception handling routines and found that HRESULT may have an answer for
me, but I don't know how to access HRESULT. Then once accessed I need to know how to relate that to a table of problems (exception classes) so I can
determine course of corrective action.

There are 63,458 input records yet only 52,215 have been added to the db. I checked on some of the missing records and they look OK as to content
and are not duplicates.

Can someone help me on this one?

Thanks,

Hexman

P.S. Using VB.net 2005, Access 2003 DB.

Private Sub BI_Process()
While LoadNextLine()
Try
BIrstData.AddNew()
BIrstData.Fields.Item("BIDate").Value = GetField(2)
' several other fields loaded
cntAdded = cntAdded + 1
BIrstData.Update()
Catch ex As Exception
'An exception occurred
'Debug.Print("BIData Error:" & GetField(2) & "===" & ex.ToString)
End Try
End While
CSVFini()
End Sub
.



Relevant Pages

  • Re: Security exception while opening an OleDBConnection
    ... CyberLotus have you given it the right permissions? ... and i posted a similar solution for MS access database. ... Security Exception. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Syntax error with Access database
    ... Changes can be made to the dataset text boxes with no problems but I get a syntax error attempting to update or insert into a Access database. ... bLoading = True dsGRAD.GRADUATE.CleardaGRAD.Fill ... The syntax error generated is identical to the error message mentioned in the message from Dustin Wilson dated 12 Aug 2005 to this group with the exception of the different names and locations of the database. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: insert a data record into a data table of a access database(mdb)
    ... > Is there any better menthod to insert a data record into an access database> table? ... >> authorking, ... >> Does it give any more information than that in the exception? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: insert a data record into a data table of a access database(mdb)
    ... Is there any better menthod to insert a data record into an access database ... > Does it give any more information than that in the exception? ... > stack (for example, it was a COM error code that was returned, what is ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Unhandled exception on Windows98
    ... I installed framework 2 and windows installer 2 on the windows 98 ... Private Sub btnQuickQuoteOK_Click(ByVal sender As System.Object, ... exception is not handled. ... Dim caller As New AsyncMethodCaller(AddressOf ...
    (microsoft.public.dotnet.framework)