Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 21st, 2007, 01:11 PM
Authorized User
 
Join Date: Sep 2007
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default Data source name not found and no default driver s

I've created a dataAdapter in VB.NET using a System ODBC connection to a AS400 mainframe. The connection string in my dataAdapter is dynamic in that it is linked to the 'key' name and value used in my webconfig file under <appSettings> :
     <appSettings>
        <add key="salehistpConn" value="TRANSLATE=1;DSN=WBRRFC02DOTNET;PKG={QGPL/DEFAULT(IBM),2,0,1,0,512};DFTPKGLIB=QGPL;LANGUAGEI D=ENU;SYSTEM=WBRRFC02;DBQ={someDB *USRLIBL};UID=someUID" />
    </appSettings>

After the dataAdapter is configured, I'm able to Preview the dataSet that it returns with no problem. The issue I'm having is when I use this dataAdapter to populate a drowndownlist box on page load.
     Dim dsReg As New DataSet
      Try
         daRegion.Fill(dsReg)
         lblDataError.Visible = False
      Catch ex As Exception
         lblDataError.Text = "Database error: " & ex.Message
         lblDataError.Visible = True
         Exit Sub
      End Try

This is the error I'm getting:

Database error: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

Any ideas on how to resolve this issue.

Thank you very much







Similar Threads
Thread Thread Starter Forum Replies Last Post
No sutitable Driver found....... programmed Java Databases 2 September 4th, 2007 07:18 AM
Dynamic Data source with Native XML driver Nellie Crystal Reports 1 November 30th, 2006 11:42 AM
err 2580 - data source not found DavidCC SQL Server 2000 4 April 1st, 2004 03:19 PM
Error: Data source name not found and no default d Justine Classic ASP Professional 1 January 23rd, 2004 11:34 AM
Data source name not found and no default driver s bjtindle Classic ASP Databases 5 September 10th, 2003 04:35 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.