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. Moving Files

Moving Files

Scheduled Pinned Locked Moved ASP.NET
helpquestion
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.
  • K Offline
    K Offline
    kheer
    wrote on last edited by
    #1

    Hi, what is the process for moving files over servers. i have used System.IO class File.Move. when i am trying to move files i am getting error as (Access to the path is denied).

    G S 2 Replies Last reply
    0
    • K kheer

      Hi, what is the process for moving files over servers. i have used System.IO class File.Move. when i am trying to move files i am getting error as (Access to the path is denied).

      G Offline
      G Offline
      GenJerDan
      wrote on last edited by
      #2

      The error is a clue: run as an account that has permission to move to the target directory (and permission to delete from the current one, for that matter.)

      The enemy of my enemy of my enemy of my enemy is Kevin Bacon. My Mu[sic] My Films My Windows Programs, etc.

      1 Reply Last reply
      0
      • K kheer

        Hi, what is the process for moving files over servers. i have used System.IO class File.Move. when i am trying to move files i am getting error as (Access to the path is denied).

        S Offline
        S Offline
        Simon_Whale
        wrote on last edited by
        #3

        have a read of this ASP.NET Impersonate user example[^]

        As barmey as a sack of badgers Dude, if I knew what I was doing in life, I'd be rich, retired, dating a supermodel and laughing at the rest of you from the sidelines.

        K 1 Reply Last reply
        0
        • S Simon_Whale

          have a read of this ASP.NET Impersonate user example[^]

          As barmey as a sack of badgers Dude, if I knew what I was doing in life, I'd be rich, retired, dating a supermodel and laughing at the rest of you from the sidelines.

          K Offline
          K Offline
          kheer
          wrote on last edited by
          #4

          hi simon, i have used this impersonation, but we can only have one impersonated user in our web.config file. my problem is i have to move the files through almost five servers, at this point i am getting the error.

          S 1 Reply Last reply
          0
          • K kheer

            hi simon, i have used this impersonation, but we can only have one impersonated user in our web.config file. my problem is i have to move the files through almost five servers, at this point i am getting the error.

            S Offline
            S Offline
            Simon_Whale
            wrote on last edited by
            #5

            Can you use the same username password combination for all 5 servers? As all they need to the relevant file access rights

            As barmey as a sack of badgers Dude, if I knew what I was doing in life, I'd be rich, retired, dating a supermodel and laughing at the rest of you from the sidelines.

            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