Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.Configuration.ConfigurationErrorsException at System.Configuration.Internal.InternalConfigHost.StaticOpenStreamForWrite #57

Closed
StephenMP opened this issue Oct 25, 2011 · 0 comments

Comments

@StephenMP
Copy link

** 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant