bsmg / ModAssistant

Simple Beat Saber Mod Installer
MIT License
2.5k stars 419 forks source link

System.Configuration.ConfigurationErrorsException: Failed to save settings #111

Open JamieK135 opened 4 years ago

JamieK135 commented 4 years ago

When i try to run ModAssitant.exe this appears even when i run as admin

ModAssistant Issue

Kauoz commented 4 years ago

I have this issue as well :/

Parapass commented 4 years ago

Do you guys have an antivirus running?

Kauoz commented 4 years ago

Do you guys have an antivirus running?

Yes, is that what's causing it? It's never been a problem before

JamieK135 commented 4 years ago

Do you guys have an antivirus running? just windows defender i also use ccleaner to get rid of junk

Parapass commented 4 years ago

If you guys need help, go to the #pc-help in the BSMG.

Kauoz commented 4 years ago

Do you guys have an antivirus running? just windows defender i also use ccleaner to get rid of junk

I've always had ModAssitant.exe on my desktop for easy access but as soon as I moved it to another location it worked again. It's pretty weird but this fixed it for me.

JamieK135 commented 4 years ago

Do you guys have an antivirus running? just windows defender i also use ccleaner to get rid of junk

I've always had ModAssitant.exe on my desktop for easy access but as soon as I moved it to another location it worked again. It's pretty weird but this fixed it for me.

where did you move it to???

Kauoz commented 4 years ago

Do you guys have an antivirus running? just windows defender i also use ccleaner to get rid of junk

I've always had ModAssitant.exe on my desktop for easy access but as soon as I moved it to another location it worked again. It's pretty weird but this fixed it for me.

where did you move it to???

I moved it to my games folder which is on my other disk, not my system disk. Don't know if disk location matter but that fixed it

JerryFilms commented 4 years ago

I'm having the same issue. I've tried all of the suggested tips but the problem seems to be with BSIPA. As soon as I uninstall it the game works fine but with it the game will not even attempt to start and give the same error message as above. Hopefully we can get a fix on this, I blame the BeatSaber devs for updating their game every 2 minutes.

Parapass commented 4 years ago

Once again, go to #pc-help in the BSMG discord.

JamieK135 commented 4 years ago

Once again, go to #pc-help in the BSMG discord.

been there no one knows what is going on

Parapass commented 4 years ago

Either it can't write or read the config file or your config file is just corrupted.

VeikkoLehmuskorpi commented 4 years ago

Simply downloading the latest release and replacing the old ModAssistant.exe file with that fixed it for me.

JamieK135 commented 4 years ago

Simply downloading the latest release and replacing the old ModAssistant.exe file with that fixed it for me.

this is the first time installing mod assistant for me

megalon commented 4 years ago

Are you still having this issue? It looks like Windows is trying to access a temp file, which may no longer exist. On my machine, the file is called user.config, but yours is krxikakp.tmp

If this error occurs again, can you try to go to the path it provides and see if the file exists? For example, C:\Users\<username>\AppData\Local\ModAssistant\ModAssistant.exe_Url_b5ccye5brv14r0rvvr3g5zy3mpn2lvpn\1.1.5.0

On the technical side, I'm not sure why it would be trying to access a temp file. Mod Assistant saves settings using Properties.Settings.Default.Save(), which should be handled by Windows. The Settings class is auto generated by Visual Studio, and extends the ApplicationSettingsBase class https://docs.microsoft.com/en-us/dotnet/api/system.configuration.applicationsettingsbase?view=netframework-4.6.1

I can't find any reason why it would be a temp file. If anyone else has any suggestions here let me know.

Edit: This is the only thing I can find about this issue, the user says that the folder doesn't exist for some reason. You could try creating the folder yourself, and see if that works.https://stackoverflow.com/questions/35130809/c-sharp-usersettings-exception-could-not-find-a-part-of-the-path-during-save

JerryFilms commented 4 years ago

I was able to fix this issue by filling uninstalling the game. As in going into the .../steamapps/common folder and deleting the entire file (after backing up my downloaded songs and platforms). After redownloading it, installing all the mods, and replacing the downloaded songs it worked perfectly fine.

megalon commented 3 years ago

Is anyone still having this issue?

It's been over a year now and I'm wondering if we can close this with the possible solution above.