Updating web config
With either method, your custom settings can be reapplied post-upgrade.
I have a huge web application that have consists of many modules, DLLs and source code files.
Sincerely, Zong-Qing Li Microsoft Online Community Support Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. It seemed to me that web config (I thougth that since it was in the app directory and had an app settings section was the place to set/save app things.
I suspect it would now be better to set/save these elsewhere (eg associated sql database). I have learnt quite a lot from these reponses thankyou I want to do this for a web service.
The mentioned blog post covers how to read settings from another XML file and it works with both windowed applications and web applications (with a little modification in config file name and path).
First, you can declaratively register web.config entries by creating an XML file that contains a set of web.config modifications. file deployed to %Program Files%\Common Files\Microsoft Shared\web server extensions\CONFIG, where XYZ is a unique ID that you use to identify your solution.If you load the web.config in an XMLDocument, change a value, then save it, will it restart all currently running instances of the web service or let those finish first and only new web services calls would use the updated version?I need a way to pass information in between different instances of the web service (i.e. Most if not all documentation for web.config still has that xmlns attribute. Anyway, it would be nice if MS can patch that up or document that so that other people won't need to spend a couple days like I did trying to figure it out.
VS2008 Vista Microsoft Visual Studio 2008 Version 9.0.21022.8 RTM Microsoft .this web service should only be allowed to run 1000 times an hour and I want to keep a counter each time the web service is called and check the new value each time it is read to make sure it is below the threshold of 1000).