Can not find the file and the file if it is in that route.
FileInfo file = new FileInfo(@"\\10.125.16.22\Facturas Electronicas\Factura EMP000098.pdf");
if (file.Exists)
{
EventLog.WriteEntry("encontro los adjuntos de la factura " + nrodocumento);
File.Copy(ruta, @"C:\Factura\" + file.Name + ".pdf", true);
cantidad++;
}
else
{
EventLog.WriteEntry("no existe el adjunto " + ruta);
}
when it reaches if (file.Exists)
the result is False
. The type of project that I am using is Visual Studio Service Project.
the service windows in the configuration I have Account LocalSystem
I must change it ?
if it is not "Local System" which should I handle?