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. General Programming
  3. C#
  4. access denied in case of share folder

access denied in case of share folder

Scheduled Pinned Locked Moved C#
csharpsysadminhelpcareer
5 Posts 3 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.
  • D Offline
    D Offline
    devesh_code
    wrote on last edited by
    #1

    Hello I am sharing a folder through sharing property. For that, i just right click on the folder and shared it...Now i can easily access this folder from any computer within a network. This is so simple. Now i have done the same job through C# code. It works properly. But when i access this folder from any computer, it shows an error i.e. access denied. I am not able to understand the reason. Plz reply me asap. Thanks

    Devesh Mishra

    R 1 Reply Last reply
    0
    • D devesh_code

      Hello I am sharing a folder through sharing property. For that, i just right click on the folder and shared it...Now i can easily access this folder from any computer within a network. This is so simple. Now i have done the same job through C# code. It works properly. But when i access this folder from any computer, it shows an error i.e. access denied. I am not able to understand the reason. Plz reply me asap. Thanks

      Devesh Mishra

      R Offline
      R Offline
      RepliCrux
      wrote on last edited by
      #2

      I am not sure if that is the problem, but you did not mention security in your post. When you share a folder and you want anyone to access it you need to give permission. Have you done that in your code?

      D 1 Reply Last reply
      0
      • R RepliCrux

        I am not sure if that is the problem, but you did not mention security in your post. When you share a folder and you want anyone to access it you need to give permission. Have you done that in your code?

        D Offline
        D Offline
        devesh_code
        wrote on last edited by
        #3

        Yah i have done this in my code.yah the scenario is really amazing. Suppose there are to system A & B. Then i can access that folder from A but not from B. This is my out of mind. Why its happening ?????

        Devesh Mishra

        M 1 Reply Last reply
        0
        • D devesh_code

          Yah i have done this in my code.yah the scenario is really amazing. Suppose there are to system A & B. Then i can access that folder from A but not from B. This is my out of mind. Why its happening ?????

          Devesh Mishra

          M Offline
          M Offline
          mav northwind
          wrote on last edited by
          #4

          With so little information we're unable to help properly. Are the machines part of a domain? Are the same users trying to access the share? Are you able to access the share from windows explorer? When you do so for the first time after rebooting the computer, does it prompt you for user name and password before allowing you access to the share? Questions over questions... :)

          Regards, mav -- Black holes are the places where God divided by 0...

          D 1 Reply Last reply
          0
          • M mav northwind

            With so little information we're unable to help properly. Are the machines part of a domain? Are the same users trying to access the share? Are you able to access the share from windows explorer? When you do so for the first time after rebooting the computer, does it prompt you for user name and password before allowing you access to the share? Questions over questions... :)

            Regards, mav -- Black holes are the places where God divided by 0...

            D Offline
            D Offline
            devesh_code
            wrote on last edited by
            #5

            yah all the system are from the same domain. There are two diff users, trying to access the share folder on two diff system. it doesnt prompt for the username and password, after rebooting the system. Hey i know the whole scenario is really embarrassing... its totally my out of mind.. Thanks

            Devesh Mishra

            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