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