Solved

Reading from app.config file with VB Express 2010

Posted on 2011-03-04
1
970 Views
Last Modified: 2012-05-11
I have this in my namespace section:

Imports System.Configuration

I attempt to read from the file this way, but I get an error about ConfigurationManager not being a member.

strPath = System.Configuration.ConfigurationManager.AppSettings("Path")

I plan to use the .exe.config file for these settings when I go to deploy this application.

thanks

0
Comment
Question by:JMO9966
1 Comment
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 500 total points
ID: 35041791
Click on Project --> Add Reference --> .Net Tab --> System.Configuration.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Gridview User Control event not firing 4 45
Select all rows in datagridview 15 21
Need help with a query. 10 43
Duplicate a row 2 31
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now