Config Block throws error when App Pool Recycles

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

Guest

I am attempting to research an error condition that I am experiencing with
the Config Block in EntLib 1.0. I have an admin web page that I use to
populate some config values. I then have a second web pages that pulls those
values in order to perform some stuff. Works like a charm with and without
encryption.

BUT... everytime the app pool is recycled in IIS 6, the app block throws an
error when attempting to read the config values. The error is "The section
name 'XXXX' could not be found in the Xml file M:\*\XXXXconfig.xml" (I've
XX'd out the information that is implementation specific). Re-populating the
values using the admin web page resolves the error... until the app pool is
recycled again.

Has anyone seen this before? Any pointers on how I may eliminate this error?

Thanks!
 
Sounds like you might need to disable overlapping recycles(default mode) of
the app pool.
 
Thanks for the tip. Unfortunately, that IIS config option doesn't seem to
have any effect on this error condition.

I think the app pool recycing is a symptom.. not the root cause. After all,
the config block should be able to read an existing, properly formatted,
unencrypted XML file... even if the server was rebooted.

~Troglite
 
Back
Top