Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > BOOK: Beginning VB.NET Databases
|
BOOK: Beginning VB.NET Databases
This is the forum to discuss the Wrox book Beginning VB.NET Databases by Thearon Willis; ISBN: 9780764568008
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning VB.NET Databases 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 January 1st, 2010, 03:09 PM
Registered User
 
Join Date: Dec 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default An unhandled exception of type 'System.Configuration.ConfigurationException' occurred

Hello Thearon,

I am using an older book of yours, ISBN: 0764568000, to learn about vb.net, sql server, access, and maybe oracle. I've typed most of the code for TimeTracker and it was compiling fine until I began receiving this exception:
(An unhandled exception of type 'System.Configuration.ConfigurationException' occurred in system.dll
Additional information: Unrecognized configuration section appSetting)


This is occurring Public Class DALBase in the procedure:

Code:
Public Sub New()
        '   get the connection settings from the application configuration file
        Dim objAppSettings As Specialized.NameValueCollection
        objAppSettings = ConfigurationSettings.AppSettings()
        '   build the SQL connection string and initialize the Connection object
        Connection = New OleDbConnection("Provider=" & objAppSettings.Item("Provider") & ";" & _
                                         "Data Source=" & objAppSettings.Item("Data Source") & ";")
        objAppSettings = Nothing
    End Sub
Do you know what is causing this??

Thank you,
Jim





Similar Threads
Thread Thread Starter Forum Replies Last Post
An unhandled exception of type 'System.Data.SqlCli BB VB.NET 2002/2003 Basics 5 February 21st, 2014 10:22 AM
An unhandled exception of type 'System.Data.OleDb. Harvey_swift VB Databases Basics 1 May 30th, 2006 12:57 PM
unhandled exception of type 'System.Net.WebExcepti booksnore2 C# 0 June 26th, 2004 07:26 AM
Unhandled Exception stu9820 ASP.NET 1.0 and 1.1 Basics 11 January 14th, 2004 05:55 PM
Unhandled Exception: mbarrett C# 3 August 1st, 2003 05:25 PM





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