metageek-llc/inSSIDer-2 — Issue #57: System.Configuration.ConfigurationErrorsException at System.Configuration.Internal.InternalConfigHost.StaticOpenStreamForWrite
Author: StephenMP
Created: 2011-10-25 18:05:55+00:00
State: open

** Please provide a brief description of what was happening immediately prior to this error **

[Description]

[Message]
Failed to save the settings: When loading a configuration file, an error has occurred. File can not be opened for writing, because it is read-only or hidden.

[Version]
2.0.7.0126

[WinVer]
Microsoft Windows NT 6.1.7601 Service Pack 1

[Platform]
x86

[Stack trace]
System.Configuration.ConfigurationErrorsException: Failed to save the settings: When loading a configuration file, an error has occurred. File can not be opened for writing, because it is read-only or hidden. ---> System.Configuration.ConfigurationErrorsException: When loading a configuration file, an error has occurred. File can not be opened for writing, because it is read-only or hidden. ---> System.IO.IOException: The file can not be opened for writing, because it is read-only or hidden.
at System.Configuration.Internal.InternalConfigHost.StaticOpenStreamForWrite (String stream, String template stream, Object & write context, Boolean assertPermissions)
at stream, String template stream, Object & write context, Boolean assertPermissions)
at System.Configuration.Internal.DelegatingConfigHost.OpenStreamForWrite (String stream, String template stream, Object & write context, Boolean assertPermissions)
at System.Configuration.ClientSettingsStore.ClientSettingsConfigurationHost.OpenStreamForWrite (String stream, String template stream, Object & write context)
at System.Configuration.UpdateConfigHost.OpenStreamForWrite (String stream, String template stream, Object & write context)
at System.Configuration.MgmtConfigurationRecord.SaveAs (String filename, ConfigurationSaveMode save, Boolean forceUpdateAll)
--- End of inner exception stack trace ---
at System.Configuration.MgmtConfigurationRecord.SaveAs (String filename, ConfigurationSaveMode save, Boolean forceUpdateAll)
at System.Configuration.Configuration.SaveAsImpl (String filename, ConfigurationSaveMode save, Boolean forceSaveAll)
System.Configuration.Configuration.Save at ()
System.Configuration.ClientSettingsStore.WriteSettings at (String sectionName, Boolean isRoaming, IDictionary newSettings)
--- End of inner exception stack trace ---
System.Configuration.ClientSettingsStore.WriteSettings at (String sectionName, Boolean isRoaming, IDictionary newSettings)
at System.Configuration.LocalFileSettingsProvider.SetPropertyValues ​​(setting context, context setting PropertyValueCollection values)
System.Configuration.SettingsBase.SaveCore at ()
System.Configuration.SettingsBase.Save at ()
System.Configuration.ApplicationSettingsBase.Save at ()
at inSSIDer.Program.Main (String [] args) \ in MetaScanner Program.cs: line of 260th