Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to call custom config from web.config?
Message
 
 
À
26/11/2007 08:37:49
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01271196
Message ID:
01271213
Vues:
15
>>I thought I read somewhere that there is a way to have your own (custom) configuration file (e.g. my.config) that can be included in web.config. Is it possible and how? I want to have all of my custom < appSettings > in a config file but not in web.config.
>>
>>Thank you in advance for any help.
>
>I haven't done this with a web application, but I am assuming you can have an app.config at the application level. When you make a call to read from a config file, there is a specific order that the application looks at the config files. Maybe somebody else can confirm that you can have an app.config in a web project.

I just found out (by Googling) that you can reference an external config file from your web.config file. This is what I was looking for.

Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform