Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Writing to a web.config file give me access denied

Writing to a web.config file give me access denied

Scheduled Pinned Locked Moved ASP.NET
visual-studioquestionworkspace
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BLOEDHOND
    wrote on last edited by
    #1

    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:

    H 1 Reply Last reply
    0
    • B BLOEDHOND

      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:

      H Offline
      H Offline
      hemant kaushal
      wrote on last edited by
      #2

      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. :)

      B 1 Reply Last reply
      0
      • H hemant kaushal

        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. :)

        B Offline
        B Offline
        BLOEDHOND
        wrote on last edited by
        #3

        Thanx That was te problem :laugh::laugh:

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups