Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help reading an application Config File
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00889292
Message ID:
00889349
Vues:
22
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform