Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET 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 October 4th, 2004, 01:32 PM
Registered User
 
Join Date: Oct 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ConfigurationSettings.AppSettings com library

I'm trying to read settings in the App.config file in a .NET com library app
using the following code:
System.Configuration.ConfigurationSettings.AppSett ings("foo")

This works fine in ASP.NET, and also in VB.NET Windows app - but no go in
the com library application.

I don't get any errors - just a return string of nothing.

Any ideas?
 
Old October 4th, 2004, 02:42 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

You could try ConfigurationSettings.AppSettings.Get("foo")

Typically, whatever project you add a reference to (for example, if the COM app was added as a reference to the VB.NET windows app), it uses those configuration settings.

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
why use <configSections> instead of <appSettings>? jini BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 January 28th, 2007 08:35 PM
AppSettings("ConnectionString") obsolete stevecist ASP.NET 1.0 and 1.1 Basics 1 December 29th, 2006 01:56 AM
how to store path in web.config appsettings sectio gbianchi ASP.NET 2.0 Professional 0 October 18th, 2006 12:37 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.