J
Jeff Robichaud
Hello,
Since it is possible to put application settings in a file other than
web.config, I was wondering what is the best practice in doing so vs.
putting these settings directly in web.config. My point is that when I
deploy an application, I want to overwrite web.config all the time, because
the contents of this file has a direct impact on the application's overall
behavior. For example, the execution timeout for my app is 60 seconds, and
this is by design, this is what I've decided that fits with the
application's purpose. So I don't want anybody opening the web.config file
and deciding that it's 45 seconds, right ? If I know someone has tampered
with the web.config file, I cannot guarantee that everything is going to
behave well.
So, is it a good thing to consider two kinds of configuration settings : 1.
The global settings (like execution timeout) that are never accessed in
code; 2. The application settings, that are accessed in code. The second
kind behind held in a different file than web.config. So when you deploy you
ask no question and overwrite the existing web.config file, knowing that the
newest web.config file might contain some information that you really want
to have because it is intrinsic to the application's design. The app
settings file remaining unchanged unless it has to be updated.
I don't know if this is clear enough but hey it's friday...
Thanks for anyone trying an answer...!!
Since it is possible to put application settings in a file other than
web.config, I was wondering what is the best practice in doing so vs.
putting these settings directly in web.config. My point is that when I
deploy an application, I want to overwrite web.config all the time, because
the contents of this file has a direct impact on the application's overall
behavior. For example, the execution timeout for my app is 60 seconds, and
this is by design, this is what I've decided that fits with the
application's purpose. So I don't want anybody opening the web.config file
and deciding that it's 45 seconds, right ? If I know someone has tampered
with the web.config file, I cannot guarantee that everything is going to
behave well.
So, is it a good thing to consider two kinds of configuration settings : 1.
The global settings (like execution timeout) that are never accessed in
code; 2. The application settings, that are accessed in code. The second
kind behind held in a different file than web.config. So when you deploy you
ask no question and overwrite the existing web.config file, knowing that the
newest web.config file might contain some information that you really want
to have because it is intrinsic to the application's design. The app
settings file remaining unchanged unless it has to be updated.
I don't know if this is clear enough but hey it's friday...
Thanks for anyone trying an answer...!!