Solved

ODBC Adapter exception in VB.net

Posted on 2008-10-25
2
921 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

919 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now