Solved

ODBC Adapter exception in VB.net

Posted on 2008-10-25
2
916 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
Comment Utility
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
Comment Utility
THanks!  I did add exception handling and was able to determine that there were connectivity issues with the PC and server.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

772 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

11 Experts available now in Live!

Get 1:1 Help Now