.config files are getting corrupted

  • Thread starter Thread starter Raja
  • Start date Start date
R

Raja

In VB.Net, .config files are getting corrupted, when the system goes down due
to some powere failure or some other reason. what could be solution to
prevent those files ?

Thanks,
Rajan
 
Raja said:
In VB.Net, .config files are getting corrupted, when the system goes
down due to some powere failure or some other reason. what could be
solution to prevent those files ?

Run the computer from a UPS (and configure the computer to shut down when
the UPS battery is getting low). Otherwise, the PSU could get damaged, which
could conceivably lead to a fire, in which case corrupted files would be the
least of your worries.
 
Raja,

Corrupted or not completely updated? There is always a chance whatever file
gets corrupted at a power break and then only the solution Andrew describes
is correct.

However, a config file is always written completely. So the change that it
is corrupt is low. (It can contain the wrong information, so you have
probably to update it more often)

Cor
 
Raja said:
In VB.Net, .config files are getting corrupted, when the system goes down due
to some powere failure or some other reason. what could be solution to
prevent those files ?

Thanks,
Rajan

You should not be writing to .config files. Therefore, it's impossible
to corrupt them.
 
Back
Top