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. Finding a file over network ><

Finding a file over network ><

Scheduled Pinned Locked Moved ASP.NET
helpsysadminxml
3 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.
  • A Offline
    A Offline
    Anzy
    wrote on last edited by
    #1

    Hi, Really really need someone's help on this one. I have 2 servers, A and B. On both servers, I called the following code: File.Exists(@"\\xxx\yyy\file.xml"); Server A returns: true Server B returns: false The file indeed EXISTS. Could ANYONE tell me why server B cannot see the file and how could I possibly fix this problem. Really really thank you if you could solve this for me. Anzy

    R 1 Reply Last reply
    0
    • A Anzy

      Hi, Really really need someone's help on this one. I have 2 servers, A and B. On both servers, I called the following code: File.Exists(@"\\xxx\yyy\file.xml"); Server A returns: true Server B returns: false The file indeed EXISTS. Could ANYONE tell me why server B cannot see the file and how could I possibly fix this problem. Really really thank you if you could solve this for me. Anzy

      R Offline
      R Offline
      Roger Wright
      wrote on last edited by
      #2

      Try adding the address of \\xxx to the HOSTS file on Server B, and make sure that folder \yyy is shared with Everyone. That's not a good solution, but it may help identify the source of the problem. From the tiny bit of information you've provided, it sounds like an address resolution problem. "My kid was Inmate of the Month at Adobe Mountain Juvenile Corrections Center" - Bumper Sticker in Bullhead City

      A 1 Reply Last reply
      0
      • R Roger Wright

        Try adding the address of \\xxx to the HOSTS file on Server B, and make sure that folder \yyy is shared with Everyone. That's not a good solution, but it may help identify the source of the problem. From the tiny bit of information you've provided, it sounds like an address resolution problem. "My kid was Inmate of the Month at Adobe Mountain Juvenile Corrections Center" - Bumper Sticker in Bullhead City

        A Offline
        A Offline
        Anzy
        wrote on last edited by
        #3

        I've tried putting \\xxx into the HOSTS file on Server B, but it still cannot find file. I think it's more of a security problem than anything. I'm having similar problem with defaultCredentials too. As my site is impersonating the logged on users ( using Integrated Window Auth, and <identity impersonate="true" /> ), Server A is able to use the defualtCredentials to gain access to certain urls while Server B isn't. Thanks, Anzy

        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