> how do I name the .config file so it will associate itself with my app
In your project, name the config file App.config. VS.NET will rename it
to <Assemblyname>.config during compilation, which means for an
executable, it will be called MyApp.exe.config, and for a DLL
MyDll.dll.config.
Note that the XML tags in the config file are case sensitive, so:
<appsettings>
<add key="northwind" value="server=(local);user
id=test;password=test;database=northwind" />
<add key="pubs" value="server=(local);user
id=test;password=test;database=pubs" />
</appsettings>
will not work, since machine.config uses appSettings for the application
configuration tag. If you change it to <appSettings> and </appSettings>,
you should be able to read the config.
You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.