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. Access denied error

Access denied error

Scheduled Pinned Locked Moved ASP.NET
csharphtmlasp-nethelpquestion
2 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.
  • H Offline
    H Offline
    hogan john
    wrote on last edited by
    #1

    Hi everybody, I created a site using asp.net 2.0. That site has an html file which used to read and write some html codes at runtime. But I got an error message that is "Access to the path 'D:\WWWRoot\bolt.cc\www\Admin\Msg.htm' is denied." I talked with the service providers. They told me that they give full permission to that file. Also I checked the permission though the site control panel. The file has full permission to read and write. It is working correctly in the local mechine. This error occured at the time of open the file to write. Can you please tell the reason of this error? Thanks and Regards, Hogan

    N 1 Reply Last reply
    0
    • H hogan john

      Hi everybody, I created a site using asp.net 2.0. That site has an html file which used to read and write some html codes at runtime. But I got an error message that is "Access to the path 'D:\WWWRoot\bolt.cc\www\Admin\Msg.htm' is denied." I talked with the service providers. They told me that they give full permission to that file. Also I checked the permission though the site control panel. The file has full permission to read and write. It is working correctly in the local mechine. This error occured at the time of open the file to write. Can you please tell the reason of this error? Thanks and Regards, Hogan

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      You can ask the provider to give ASP.NET account for full permission on that directory. If it's not possible, ask them an account name and password which is having full rights on the directory, then use impersonation before you write something to the file. You may check this[^] for getting an idea.

      All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

      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