Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help reading an application Config File
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00889292
Message ID:
00889349
Views:
21
This message has been marked as the solution to the initial question of the thread.
Hi Kirk,

The name of your application config file should be app.config and located in your root directory of your application. VS.NET then takes the contents of the app.config and creates a config for your specific app and places it in the BIN directory. You don't do any of that. Just create app.config and place your information in there. Make sure the ConnectionString key below has an "=" sign after the "value".

>Cathi
>
>Thanks for the reply, still no luck though, I tried adding another key, but get the same Nothing.
>
>vbReadConfig.config
>
><?xml version="1.0" encoding="utf-8" ?>
><configuration>
>	<appSettings>
>		<add key="ConnectionString" value "ConnectionStringText"/>
>		<add key="dsn" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Statistics.mdb"/>
>	</appSettings>
></configuration>
>
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform