System.Data.OleDb.OleDbException

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Claudia Fong

    System.Data.OleDb.OleDbException



    Hi,

    Does someone can explain to me why this exception
    (System.Data.Ol eDb.OleDbExcept ion) occurs and is there a way to prevent
    it?

    The whole message is:

    An unhandled exception of type 'System.Data.Ol eDb.OleDbExcept ion'
    occured in System.data.dll


    Cheers!

    Claudi

    *** Sent via Developersdex http://www.developersdex.com ***
  • Carlos J. Quintero [.NET MVP]

    #2
    Re: System.Data.Ole Db.OleDbExcepti on

    First, you need to use a try/catch block to handle the exception and make
    your program more robust. In the catch block, use the ToString method of the
    exception to get info about it, specially to know the line which caused it
    (use the Debug configuration, not the Release configuration).

    --

    Best regards,

    Carlos J. Quintero

    MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
    You can code, design and document much faster.
    Free resources for add-in developers:
    MZ-Tools has a single goal: To make your everyday programming life easier. As an add-in to several Integrated Development Environment (IDEs) from Microsoft, MZ-Tools adds new menus and toolbars to them that provide many new productivity features.


    "Claudia Fong" <cdolphin88@yah oo.co.uk> escribió en el mensaje
    news:OJshg2FXFH A.3988@TK2MSFTN GP10.phx.gbl...[color=blue]
    >
    >
    > Hi,
    >
    > Does someone can explain to me why this exception
    > (System.Data.Ol eDb.OleDbExcept ion) occurs and is there a way to prevent
    > it?
    >
    > The whole message is:
    >
    > An unhandled exception of type 'System.Data.Ol eDb.OleDbExcept ion'
    > occured in System.data.dll
    >
    >
    > Cheers!
    >
    > Claudi
    >
    > *** Sent via Developersdex http://www.developersdex.com ***[/color]


    Comment

    • Ignacio Machin \( .NET/ C# MVP \)

      #3
      Re: System.Data.Ole Db.OleDbExcepti on

      Hi,

      Post the code that is provoking this.

      cheers,

      --
      Ignacio Machin,
      ignacio.machin AT dot.state.fl.us
      Florida Department Of Transportation



      "Claudia Fong" <cdolphin88@yah oo.co.uk> wrote in message
      news:OJshg2FXFH A.3988@TK2MSFTN GP10.phx.gbl...[color=blue]
      >
      >
      > Hi,
      >
      > Does someone can explain to me why this exception
      > (System.Data.Ol eDb.OleDbExcept ion) occurs and is there a way to prevent
      > it?
      >
      > The whole message is:
      >
      > An unhandled exception of type 'System.Data.Ol eDb.OleDbExcept ion'
      > occured in System.data.dll
      >
      >
      > Cheers!
      >
      > Claudi
      >
      > *** Sent via Developersdex http://www.developersdex.com ***[/color]


      Comment

      Working...