I am looking for some suggestions about dynamically writing the web.config file.
In the application onstart, can I call my function to build this file?
We have many clients and 3-10 rules for each. Right now, we have a huge web.config in our application root folder. It became this big over the years with rules related to all clients in one file.
d
Dave Merrill
11/08/2024, 3:42 PM
Hi there!
Dave Merrill
11/08/2024, 3:43 PM
I've never tried that, nothing to contribute, just hello.
(we used to work together)
t
Tomy Saman (Wu)
11/10/2024, 8:31 AM
I think it is possible, although I have never tried something likes this.
• Dynamically writing the file, sure it is quite easy
• Restart your IIS site so the new web.config take effect. Yes, I think you can use something likes cfexecute to run some windows command to restart the IIS site
Tomy Saman (Wu)
11/10/2024, 8:32 AM
But if you are talking about a "dynamic evaluated" web.config file based on what "site/domain" it is running, then I doubt there is something likes this