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. Permission problem for the file.

Permission problem for the file.

Scheduled Pinned Locked Moved ASP.NET
helpcsharphtmlasp-netsysadmin
7 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 smith
    wrote on last edited by
    #1

    Hi All, In my asp.net 2005 application I tried to read and write to an html file. But I got the error message as follows. Server Error in '/BW' Application. -------------------------------------------------------------------------------- Access to the path 'c:\inetpub\wwwroot\BW\Msg.htm' is denied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. I found the solution in google is that select the properties of the 'Msg.htm' and give permissions to the account ASP.NET from the security tab. But when i selected the properties of that file, there is no security tab. Can you please tell me why it happened? I am using Windows XP Professional version 2002 with the service pack 2 Thanks and regards, Hogan

    M 1 Reply Last reply
    0
    • H hogan smith

      Hi All, In my asp.net 2005 application I tried to read and write to an html file. But I got the error message as follows. Server Error in '/BW' Application. -------------------------------------------------------------------------------- Access to the path 'c:\inetpub\wwwroot\BW\Msg.htm' is denied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. I found the solution in google is that select the properties of the 'Msg.htm' and give permissions to the account ASP.NET from the security tab. But when i selected the properties of that file, there is no security tab. Can you please tell me why it happened? I am using Windows XP Professional version 2002 with the service pack 2 Thanks and regards, Hogan

      M Offline
      M Offline
      Mircea Grelus
      wrote on last edited by
      #2

      Open Explorer, go to "Tools" -> Folder Options. On the "View" tab scroll down in the list and uncheck the "Use simple file sharing (Recommended)" option. The Security tab will now be available.

      Cheers, Mircea "Pay people peanuts and you get monkeys" - David Ogilvy

      H 1 Reply Last reply
      0
      • M Mircea Grelus

        Open Explorer, go to "Tools" -> Folder Options. On the "View" tab scroll down in the list and uncheck the "Use simple file sharing (Recommended)" option. The Security tab will now be available.

        Cheers, Mircea "Pay people peanuts and you get monkeys" - David Ogilvy

        H Offline
        H Offline
        hogan smith
        wrote on last edited by
        #3

        Hi Mircea, Thanks for reply. I tried your solution. But still only "General" tab for the file properties. Can you please help me? Thanks and regards, Hogan

        M 1 Reply Last reply
        0
        • H hogan smith

          Hi Mircea, Thanks for reply. I tried your solution. But still only "General" tab for the file properties. Can you please help me? Thanks and regards, Hogan

          M Offline
          M Offline
          Mircea Grelus
          wrote on last edited by
          #4

          Are you logged as an Administrator? You need to have admin privileges.

          Cheers, Mircea "Pay people peanuts and you get monkeys" - David Ogilvy

          H 1 Reply Last reply
          0
          • M Mircea Grelus

            Are you logged as an Administrator? You need to have admin privileges.

            Cheers, Mircea "Pay people peanuts and you get monkeys" - David Ogilvy

            H Offline
            H Offline
            hogan smith
            wrote on last edited by
            #5

            Yes I logged as computer adminstrator. Thanks and regards, Hogan

            M 1 Reply Last reply
            0
            • H hogan smith

              Yes I logged as computer adminstrator. Thanks and regards, Hogan

              M Offline
              M Offline
              Mircea Grelus
              wrote on last edited by
              #6

              Is your C drive NTFS? It needs to be because permissions can only be set on NTFS volumes. If it is then you probably have some policies that prevent the display. Check to see if you have this registry key: Hive: HKEY_CURRENT_USER Key: Software\Microsoft\windows\CurrentVersion\Policies\Explorer Name: Nosecuritytab Type: REG_DWORD Value: 1 If you do then set the value to 0 or delete the key. If you still have problems it might be that your computer is installed in a Workgroup. Check this kb article[^]

              Cheers, Mircea "Pay people peanuts and you get monkeys" - David Ogilvy

              H 1 Reply Last reply
              0
              • M Mircea Grelus

                Is your C drive NTFS? It needs to be because permissions can only be set on NTFS volumes. If it is then you probably have some policies that prevent the display. Check to see if you have this registry key: Hive: HKEY_CURRENT_USER Key: Software\Microsoft\windows\CurrentVersion\Policies\Explorer Name: Nosecuritytab Type: REG_DWORD Value: 1 If you do then set the value to 0 or delete the key. If you still have problems it might be that your computer is installed in a Workgroup. Check this kb article[^]

                Cheers, Mircea "Pay people peanuts and you get monkeys" - David Ogilvy

                H Offline
                H Offline
                hogan smith
                wrote on last edited by
                #7

                The registery seems ok. Thanks for that article. I will try that. Thanks and regards, Hogan

                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