Problema Com Acesso Remoto A Arquivos C#
18/05/2011
0
Olá amigos do forum devmedia, estou com um problema de
acesso a arquivos remotamente, em uma aplicação Windows Application
consigo acessar o arquivo remotamente, mais quando uso o mesmo código em
uma aplicação web.net web application não funciona, ele não encontra o
arquivo. Alguém pode me ajudar?
O código que utilizo é esse: string filePath = @"\\xxx.xx.1.246\archivi\825\";
string Arquivo = "8256CD87-AE02-4FBA-B53F-9BD71FD450CC.1.1.JPG"; string teste = filePath + Arquivo; if (File.Exists(filePath + Arquivo))
{
MessageBox.Show("OK");
}
O código que utilizo é esse: string filePath = @"\\xxx.xx.1.246\archivi\825\";
string Arquivo = "8256CD87-AE02-4FBA-B53F-9BD71FD450CC.1.1.JPG"; string teste = filePath + Arquivo; if (File.Exists(filePath + Arquivo))
{
MessageBox.Show("OK");
}
Izaias Barreto
Curtir tópico
+ 0
Responder
Clique aqui para fazer login e interagir na Comunidade :)