System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize

Here you are welcome to report any Cast bugs you may have encountered

if you know of a workaround, it would be great if you would mention that too
Post Reply
getgonged
Posts: 10
Joined: Fri May 01, 2020 11:14 am

System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize

Post by getgonged »

Hi

I think this occurred because I put my computer in sleep mode and then lost power. When Push2Run came back up, I got this error shown in the images in the post.

Any thoughts on how to resolve this or save some of my config to reload the app correctly?

I can't open the app with out this error currently.

Thanks!

Jeff
Attachments
000Push2runerror_2021-09-29 11_03_26-Window3.png
000Push2runerror_2021-09-29 11_03_26-Window3.png (119.91 KiB) Viewed 3580 times
000Push2runerror_2021-09-29 11_03_26-Window2.png
000Push2runerror_2021-09-29 11_03_26-Window2.png (80.17 KiB) Viewed 3580 times
000Push2runerror_2021-09-29 11_03_26-Window.png
000Push2runerror_2021-09-29 11_03_26-Window.png (74.31 KiB) Viewed 3580 times
Last edited by getgonged on Thu Sep 30, 2021 11:31 am, edited 1 time in total.
getgonged
Posts: 10
Joined: Fri May 01, 2020 11:14 am

Re: I put my computer in sleep mode and now getting this error

Post by getgonged »

I was able to fix this... so this is now resolved.

I went to the directory mentioned in the error and found your Read me.txt instructions in the directory:
C:\Users\(YOUR USER NAME HERE)\AppData\Local\Rob_Latour\Push2Run.exe_Url_onsmqndu2520e23aigllkoutifpsd10k\3.6.1.0
the read me instructs how to replace your current config file with a backup copy in that same directory.


This is the Read Me instructions:
-----------------------------------------
"This directory contains a Push2Run settings file and up to seven backups of the Push2Run settings file.
The Push2Run settings file is named 'user.config'.
The Push2Run settings backup files are named 'user-1.config' to 'user-7.config'.
The most recent backup file is named 'user-1.config', the least recent backup file is named 'user-7.config'.
If you don't see the '.config' part of the filename then from the menu bar of Microsoft File Explorer click on 'View', and then check the option 'File name extensions'.

If you don't see the modified date associated with each file then from the menu bar of Microsoft File Explorer click on 'View', and then click on 'Details'.
Backups of your settings file are made when you first start Push2Run and at the most once a day only if your settings file has changed.
Accordingly, even if you are running Push2Run every day you may not have a backup for each of the last seven days, this is normal.
If you leave your computer on, Push2Run will determine if a new set of backups is required every morning just after midnight.

To restore your settings from a backup (also please see the notes below as additional steps may be required depending on your situation):
1. exit Push2Run
2. rename the file 'user.config' to 'user-old.config'
3. rename the backup file of your choice to 'user.config'

Notes:

1. After you have taken the steps above and start Push2Run again it will automatically update its backups.
This means the least recent backup (usually 'user-7.config') will be lost.
Accordingly, you may want to copy all the files in this directory elsewhere as an additional backup before proceeding with the restore process noted above.

2. If you use Push2Run's password protection feature your password is stored in the settings file in an encrypted fashion.
This encrypted password is used to match the password you enter to gain access to your Push2Run database.
Accordingly, if you have changed your password, or if you have changed the password protection on your database from on to off or from off to on, then you may not have access to your database information unless you also restore your database to the same time-period that the settings file is being restored from.

3. Later, once you have restarted Push2Run and you have confirmed the backup has been restored to your satisfaction, you can delete the 'user-old.config' file.

Questions can be posted here: viewforum.php?f=5&sid=64ce161cc7ab9f00f5187d5354d61ac4
"
----------

Basically, I renamed and used user-1.config as the new user.config file. I got the error on first load after doing this so I closed the app and went into user.config, added a return line around line 16. (probably this was an unneeded step but anyway now it's fixed).

For anyone else, I'd say do the original instructions and just open close the app a couple times and it will work.
Post Reply