Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to call custom config from web.config?
Message
From
26/11/2007 09:41:31
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01271196
Message ID:
01271228
Views:
16
>>>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.

Interesting - can you post the link?
Very fitting: http://xkcd.com/386/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform