I have an ASP.NET application in which I need to check for the existence of a file on another server. I am using an instantiation of the FileInfo class to accomplish this.
I have tested this locally and it works fine but when I try to determine the existence of a file on the other machine through the UNC path it is failing.
The path itself is valid since I checked it from the VFP Command window using the FILE() function.
I suspect a permissions issue. The folder on the server is set as a shared folder with sufficient permissions given to the Everyone account. I am testing this running ASP.NET on my local machine so the application is running under the local ASPNET account. I would expect the call to the server to be made under that local ASPNET account and I suspect this is causing the problem but I'm not sure of the corrective action to take since the target folder has permissions given to the Everyone account.
What am I missing here and what is the resolution?
Thanks,
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.