Writing to a web.config file give me access denied
-
HI I tried this Dim Config As System.Configuration.Configuration = WebConfigurationManager.OpenWebConfiguration("/SL2010WS") Dim csSettings As New ConnectionStringSettings("SL2010WSConnectionString", new_string) Dim csSection As ConnectionStringsSection = Config.ConnectionStrings csSection.ConnectionStrings.Clear() Config.Save(ConfigurationSaveMode.Modified) Return (new_string + " was saved to web.config") As soon as I try to save the file then the VS tells me I do not have access to this file. I checked but the file is not read only Any ideas? :confused:
-
HI I tried this Dim Config As System.Configuration.Configuration = WebConfigurationManager.OpenWebConfiguration("/SL2010WS") Dim csSettings As New ConnectionStringSettings("SL2010WSConnectionString", new_string) Dim csSection As ConnectionStringsSection = Config.ConnectionStrings csSection.ConnectionStrings.Clear() Config.Save(ConfigurationSaveMode.Modified) Return (new_string + " was saved to web.config") As soon as I try to save the file then the VS tells me I do not have access to this file. I checked but the file is not read only Any ideas? :confused:
I get same error when i tried to made some changes in .css file via application. Right click on file click on properties.Go security tab in dialog box and add ASPNET and give full rights to it.If it not works then try same thing for EVERYONE.Hope it works as its work for me. :)
-
I get same error when i tried to made some changes in .css file via application. Right click on file click on properties.Go security tab in dialog box and add ASPNET and give full rights to it.If it not works then try same thing for EVERYONE.Hope it works as its work for me. :)