You might save yourself a little time by checking out my sample code at [1] and [2]. The first is an arbitrary config file parser; the 2nd specifically supports per-assembly configuration files (including assemblies dynamically downloaded from the web as part of a web-deployed winforms app).
-Mike http://staff.develop.com/woodring http://www.develop.com/devresources [1] http://staff.develop.com/woodring/dotnet/#ConfigFileReader [2] http://staff.develop.com/woodring/dotnet/#AssemblySettings ----- Original Message ----- From: "madhu c." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 22, 2002 1:33 PM Subject: [DOTNET] config files Hi, I am writing a component to get/handle all the configuration settings from the config files. I created a new component and its having method to which I have to pass the name of the config file. For non-ASP.NET applications, I know I can pass the name of the config file(which is nothing but the "name of the assembly.config"). For ASP.NET application, if I pass web.config as the name of the config file, it fails to get that file because it could not get web.config from the path and I am getting FileNotFoundException saying that "\winnt\system32\web.config" doesn't exist. Why is it cheking over there? So if need to use web.config, what should be the path I need to give for web.config I don't know whether I am going in the right direction, if not, please correct me.. Thanks and Regards, Madhu. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.