Custom Config File in .NET



I find this hard to believe but I have put in a good amount of time
researching this issue.

You mean to tell me I can't create a custom config file and do
something like the following:

ConfigurationSettings.AppSettings.Load("app.config");
string connstr = ConfigurationSettings.AppSettings["connstring"].Value

I have a queued component that needs a config file. Inside of MSMQ I
can pass in a path to the config file. So each time the queued
component is called it passes this path inside a function inside the
component.

Now I have to treat that path like an XML doc?
XmlDocument xd = new XmlDocument();
xd.Load(path);

You telling me that Microsoft does not have this functionality yet?
I'm shocked!

.



Relevant Pages

  • Custom Config File in .NET
    ... I find this hard to believe but I have put in a good amount of time ... researching this issue. ... I have a queued component that needs a config file. ...
    (microsoft.public.dotnet.general)
  • Custom Config File in .NET
    ... I find this hard to believe but I have put in a good amount of time ... researching this issue. ... I have a queued component that needs a config file. ...
    (microsoft.public.dotnet.general)
  • Re: Linux kernel 2.4.21 problem?
    ... > because in that amount of time I would have expected better ... > troubleshooting skills to have developed. ... You are NOT a newbie, ... he used the same .config file for 2.4.21 ...
    (comp.os.linux.networking)