Hi,

I have an app.config for my windows app and the first time a user runs the app after installation I want to check whether a connectionString has been set up- if not, I get them to point to their SQL Server & database, write the connectionString to the connectionStrings section of the .config file and away I go. The app is designed to work with multiple connection strings. The problem I have is that when I first run the app and there are no connectionStrings in the app.config, the connectionstring count is still 1 because (I assume) it is inheriting the machine.config. How can I leavethe machine.config alone but turn off inheritance?

Many thanks

James