Solved

ODBC Adapter exception in VB.net

Posted on 2008-10-25
2
930 Views
Last Modified: 2012-05-05
Hello,

I have an application that is running on user PC's.  it is developed using Studio 2008 in .net and uses an odbc adapter to pull information from a database.

I am having a random error on a couple pc's and i cannot pinpoint where it is coming from.  In the event log I have the following error (fhDesktop is the name of the app):

EventType clr20r3, P1 fhdesktop.exe, P2 1.0.0.0, P3 48fbadf9, P4 system.data, P5 2.0.0.0, P6 4333aea2, P7 18a5, P8 19, P9 system.data.odbc.odbcexception, P10 NIL.

can anyone point me in the right direction?
0
Comment
Question by:posae
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 19

Accepted Solution

by:
drichards earned 500 total points
ID: 22804932
If that's all the info you get from the event log, you'll have to add proper exception handling in your database code to catch the exception and output some meaningful diagnostics.  As a shortcut, you may be able to get away with just catching all unhandled exceptions via the AppDomain.UnhandledException event or My.Application.UnhandledException event.
0
 

Author Comment

by:posae
ID: 22807251
THanks!  I did add exception handling and was able to determine that there were connectivity issues with the PC and server.
0

Featured Post

Quiz: What Do These Organizations Have In Common?

Hint: Their teams ended up taking quizzes, too.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question