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 files from remote machine

Access files from remote machine

Scheduled Pinned Locked Moved ASP.NET
windows-adminquestioncareer
2 Posts 1 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
    DotNetXenon
    wrote on last edited by
    #1

    Am trying to access a file from remote machine(IIS) Response.Redirect(~/SalarySheets/" + OffID + ".xls"; ) will work only when the SalarySheets also are locally present on a folder in my app. But what I have to do is to pick the xls from remote IIS. I should be able to access file from remote path @"\\prod-sal\Salary\SO-WEBDIST-XLS\" + OffID + ".xls"; I cant use Response.Redirect(@"\\prod-sal\Salary\SO-WEBDIST-XLS\" + OffID + ".xls") Can you suggest something else please?

    ------------------------------------------------------------ "The only true wisdom is in knowing you know nothing." --Socrates

    D 1 Reply Last reply
    0
    • D DotNetXenon

      Am trying to access a file from remote machine(IIS) Response.Redirect(~/SalarySheets/" + OffID + ".xls"; ) will work only when the SalarySheets also are locally present on a folder in my app. But what I have to do is to pick the xls from remote IIS. I should be able to access file from remote path @"\\prod-sal\Salary\SO-WEBDIST-XLS\" + OffID + ".xls"; I cant use Response.Redirect(@"\\prod-sal\Salary\SO-WEBDIST-XLS\" + OffID + ".xls") Can you suggest something else please?

      ------------------------------------------------------------ "The only true wisdom is in knowing you know nothing." --Socrates

      D Offline
      D Offline
      DotNetXenon
      wrote on last edited by
      #2

      Tried Page.ResolveUrl but the remote machine has a user id and pwd. I should supply credentials on my .net page and fetch the ms excel data.

      ------------------------------------------------------------ "The only true wisdom is in knowing you know nothing." --Socrates

      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