From: Raja on
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
From: Andrew Morton on
Raja wrote:
> 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.

--
Andrew


From: Cor Ligthert[MVP] on
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" <Raja(a)discussions.microsoft.com> wrote in message
news:BEA8D059-C532-44D9-915C-F18894BE0501(a)microsoft.com...
> 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

From: Jason Keats on
Raja wrote:
> 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.

 | 
Pages: 1
Prev: Weird application exit
Next: .net Versions