Recompile after updating XML file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have system build on ASP.NET which is running in debug mode. Everytime i modify XML file under this system, it takes a long time to open a page again. It just likes open a page after recompile whole solutions. Does anyone know why it takes so long to reload a page after i modified a XML file?

Thanks,
Michael X.
 
You mean, the web.config file? Well, that behavior is by design. If you do
not want the web application to be reset every time you edit the config
file, then use a different xml file of our own and read the settings from
there in your code. Do not use the web.config in that case.

HTH,
Manoj G
[VB MVP]

Michael X. said:
I have system build on ASP.NET which is running in debug mode. Everytime i
modify XML file under this system, it takes a long time to open a page
again. It just likes open a page after recompile whole solutions. Does
anyone know why it takes so long to reload a page after i modified a XML
file?
 
Thanks for the reply. But neigher web.config nor machine.config was changed. The XML file is my own file, which is under my solution file folder and also under virtual directory of my project.

Manoj G said:
You mean, the web.config file? Well, that behavior is by design. If you do
not want the web application to be reset every time you edit the config
file, then use a different xml file of our own and read the settings from
there in your code. Do not use the web.config in that case.

HTH,
Manoj G
[VB MVP]

Michael X. said:
I have system build on ASP.NET which is running in debug mode. Everytime i
modify XML file under this system, it takes a long time to open a page
again. It just likes open a page after recompile whole solutions. Does
anyone know why it takes so long to reload a page after i modified a XML
file?
Thanks,
Michael X.
 
Back
Top