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. Accessing Network Path In Web Services

Accessing Network Path In Web Services

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netwcfsysadmin
2 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.
  • I Offline
    I Offline
    idreesbadshah
    wrote on last edited by
    #1

    Hi I have created a web service .I want to check either a directory exists or not on any other system.for this i have used Directory.Exists("\\ComputerName\SharedFolder").But it always return false.I have given everyone full control on this folder.Similarly on windows application and in web application it returns true but in web service it returns false.ANy body have idea to access network shared path in web services ASP.net2.0 Thanks

    A 1 Reply Last reply
    0
    • I idreesbadshah

      Hi I have created a web service .I want to check either a directory exists or not on any other system.for this i have used Directory.Exists("\\ComputerName\SharedFolder").But it always return false.I have given everyone full control on this folder.Similarly on windows application and in web application it returns true but in web service it returns false.ANy body have idea to access network shared path in web services ASP.net2.0 Thanks

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      Try to use impersonate or create a different application pool for your web service with Identity of Local System.

      Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Visit My Latest Article : Beginner's Guide : Exploring IIS 6.0 With ASP.NET

      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