Hi,
In my Web Application, I need to check whether a file exists. I'm using the
System.IO.File.Exists("filename") method.
This file is in another server.
Always the return's method is False. But through the windows explorer I have
permission to access it. So Can I do?
thanks a lot
Marcos SantosMost likely the default ASPNET user account does not have network security
privileges.
To test this theory, use impersonation to have the web application run under
your user account.
Here's more info:
http://msdn.microsoft.com/library/d...personation.asp
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Marcos MOS" <marcos.santos@.softway.com.br> wrote in message
news:%23$SvPoPSEHA.2408@.tk2msftngp13.phx.gbl...
> Hi,
> In my Web Application, I need to check whether a file exists. I'm using
the
> System.IO.File.Exists("filename") method.
> This file is in another server.
> Always the return's method is False. But through the windows explorer I
have
> permission to access it. So Can I do?
> thanks a lot
> Marcos Santos
>
Saturday, March 24, 2012
permission to File.Exists
Labels:
application,
asp,
exists,
file,
fileexists,
filename,
method,
net,
permission,
thesystem,
web
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment