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. Visual Basic
  4. UNC path to the application problem

UNC path to the application problem

Scheduled Pinned Locked Moved Visual Basic
helpcsharpsysadminsecuritytutorial
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
    alexfromto
    wrote on last edited by
    #1

    Hi. I have console application installed on the servers, which I'm trying to run by calling it from a batch file. In the batch file, I specify UNC path to the application 1 paramter: path to the folder. Example: \\server\directory\app \\server\dir\datafile\ The application doesn't see the path to the folder and returns back with "Directory doesn't exist" error (it does run the application though). When I change UNC paths, within the batch file, to noraml (proper path to the application and path to the folder using C:\... etc.) URLs the application works without any problems. If I only change folder path to C:\... it can't see the path as well. I know that it got something to do with the security issue within .NET. Is there anyway around it. It looks like the app. just can't understand UNC paths. Please help. Thank you, Alex.

    D 1 Reply Last reply
    0
    • A alexfromto

      Hi. I have console application installed on the servers, which I'm trying to run by calling it from a batch file. In the batch file, I specify UNC path to the application 1 paramter: path to the folder. Example: \\server\directory\app \\server\dir\datafile\ The application doesn't see the path to the folder and returns back with "Directory doesn't exist" error (it does run the application though). When I change UNC paths, within the batch file, to noraml (proper path to the application and path to the folder using C:\... etc.) URLs the application works without any problems. If I only change folder path to C:\... it can't see the path as well. I know that it got something to do with the security issue within .NET. Is there anyway around it. It looks like the app. just can't understand UNC paths. Please help. Thank you, Alex.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      It's patially a security issue, since managed code is not trusted from ANY network source, and it also appears to be a problem with your app not being able to handle UNC paths. Or, there is a permissions issue with the path that you're giving your app.

      Dave Kreskowiak Microsoft MVP - Visual Basic

      A 1 Reply Last reply
      0
      • D Dave Kreskowiak

        It's patially a security issue, since managed code is not trusted from ANY network source, and it also appears to be a problem with your app not being able to handle UNC paths. Or, there is a permissions issue with the path that you're giving your app.

        Dave Kreskowiak Microsoft MVP - Visual Basic

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

        The server it installed on has access to the path so I don't think it's a permission issue. We've tried to give permission to everyone for this folder and still had problems. By the way the initial test of the application was trying to access share on the same server and failed. Do you know any way around it? We will be calling batch from another computer and we need to use UNC paths.

        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