Where does the App.config go when I publish a website using Visual Studio. I can’t see it in my publish output directory.
I have the App.config created by Visual Studio when I added a web refernce to my class libaray. I want to have a editable App.config so that I don’t want to rebuild everytime when I want to switch to another web service.
Your web.config file needs to live in the root directory of the application. If your application involves multiple virtual directories (i.e. nested virtual directories) then IIS will also read in any web.config files as long as they are in the roots of those virtual directories.
Remember that .NET configuration file schema also allows you to put other configuration files elsewhere and include them into the main configuration file when the application starts so that affords you some more flexibility.