asp.net - How to constraint IIS app pool from refresh if some files change? -
i have asp.net mvc application , contains folders files can changed in real-time while application runs in iis.
when change files extensions .resx (without code generation) , .xml (with custom content) application pool gets refreshed , don't want behaviour, if change .cshtml pool doesn't refresh.
when put mentioned "problematic" files in app_data folder pool won't refreshed, maybe there's solution other folders too.
for example if have such folder structure in application:
app_code app_data - file1.resx // when content changes pool doesn't refreshed - files2.xml // when content changes pool doesn't refreshed - files3.cshtml // when content changes pool doesn't refreshed customfolder - app_localresources -- file1.resx // when content changes pool gets refreshed -- files2.xml // when content changes pool gets refreshed -- files3.cshtml // when content changes pool doesn't refreshed how prevent iis application pool refresh if files or file types changed?
thanks help.
i think app_data special directory ignored application restart/reload, since lot of dynamic/changing content can end there.
from msdn resx files:
the .resx (xml-based resource format) files converted in common language runtime binary .resources files can embedded in runtime binary executable or compiled satellite assemblies.
from that, think application being restarted because resx file being compiled @ runtime.
i don't think there way prevent behavior. there ideas on how prevent asp.net application restarting when web.config modified? haven't tried of these.
Comments
Post a Comment