A first chance exception of type 'System.Data.Odbc.OdbcException' occurred in...

th3gman

Member
Joined
Nov 17, 2010
Messages
16
Programming Experience
Beginner
Here's hoping someone can help a noob out..

I am working out of an old book (Beginning VB.NET Databases) circa 2004'ish... and I'm working in Visual Studio 2008 and running Windows 7 x64.

I've determined that the code for the project I am working on is sound, as I downloaded the same completed code out from WROX (the publisher of the book) and it generated the same error. I can only conclude it is some sort of permissions or new (Windows 7, Visual Studio 2008, .NET 3.5) environment issue that causing the error.

When I go to Debug my app... I get this In the "Intermediate Window":
A first chance exception of type 'System.Data.Odbc.OdbcException' occurred in System.Data.dll

Any ideas? :confused:

Many thanks.
 

JohnOfStony

New member
Joined
Jul 12, 2012
Messages
2
Location
Milton Keynes
Programming Experience
10+
Many thanks indeed - I wasn't even aware of the SQLClient Connection. Once I started using it I was able to use the connection string generated by the wizard and all is now OK. A great introduction to VB.NET Forums. Your other advice and comments were also very helpful.
 
Top Bottom