protected void Application_Start(object sender, EventArgs e)
{
//In this event i m updating the web.config file...
XmlDocument doc = new XmlDocument();
doc.load("..../web.config");
//Logic to update the web.config file.
}
Updating web.config by programmatically in application start up event of global.asax, is it right way to update the config file.? What impact it does on website.?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Abhimanyu K VatsaRank #14 · 51.7K reputationPosted Jul 10, 2010, 8:48 PM EDT
i think, it is not a good idea to update web.config file using app start-up because websites has very high concurrency and always googling with web.config file that's very bad idea. This can be cause to slow down the entire website also. And lots more problems will arise.
I hope my post will help you.
Uday GaikwadRank #3,021 · 477 reputationPosted Jul 12, 2010, 1:41 AM EDT
after deployment of web site i want to update web.config parameters