Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 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
  #1 (permalink)  
Old December 29th, 2006, 01:33 AM
Registered User
Join Date: Dec 2006
Location: North Arlington, N.J., USA.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default AppSettings("ConnectionString") obsolete

When trying to compile a dll file using vbc (visual basic compiler) in a batch file, I received the error ConfigurationSettings.AppSettings("ConnectionStrin g") is obsolete. I tried to replace this in my vb file to System.Configuration!System.Configuration.Configur ationManagerAppSettings which is what the compiler said was the new way of doing it. This didn't work at all, and I am stuck because I cannot create the dll file. The compiler said that System.Configuration! was the name of a namespace and didn't belong. The book I am working from is Beginning ASP.NET 1.1 with VB.NET 2003. I am using ASP.NET WebMatrix. The ConfigurationSettings has to do with a database being used in the vb program and it refers to the web.config file. Could someone tell me how to get unstuck.

stevecist baseballhero@msn.com
  #2 (permalink)  
Old December 29th, 2006, 01:56 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons

Are you using the .NET 1.1 Framework?

In 2.0 it is something like this:
Dim myConnection As SqlConnection = New SqlConnection(ConfigurationManager.ConnectionStrin gs("YourConnStringName").ConnectionString)

In 1.1 if you want to appease the compiler try this:
ConfigurationManager.AppSettings.("ConnectionStrin g")

I have never had a problem doing things as you have done so it seems very strange that VBC is erroring out, nevertheless, without any supporting code this is my best guess.

I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature

Similar Threads
Thread Thread Starter Forum Replies Last Post
is Beginninig PHP4 obsolete? 132591 BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 0 October 19th, 2006 06:24 PM
Public properties becoming obsolete BenCh BOOK: ASP.NET Website Programming Problem-Design-Solution 1 July 17th, 2005 08:29 PM
Is this book obsolete webdeepak BOOK: ASP.NET Website Programming Problem-Design-Solution 6 March 29th, 2005 03:01 PM
ConfigurationSettings.AppSettings com library lpm_forum General .NET 1 October 4th, 2004 02:42 PM
ConfigurationSettings.AppSettings bmains Pro VB.NET 2002/2003 0 October 20th, 2003 02:19 PM

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