469,572 Members | 1,222 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,572 developers. It's quick & easy.

Account using when call File.Exists() in ASP.NET

I want to know which account will be used when File.Exists are called in
ASP.NET ? Thx
Nov 19 '05 #1
4 1307
Hi,

the logged in user's account permissions will be used when File.Exists is
called.

Cheers,

Jerome. M

"Tony Cheng" wrote:
I want to know which account will be used when File.Exists are called in
ASP.NET ? Thx

Nov 19 '05 #2
By default the ASPNET user account will be used. This account is locked
down and does not have access to most directories by default.

Note: In Windows Server 2003 the "Network Service" user account is used
instead of ASPNET.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Tony Cheng" <sd***@fdfsds.com> wrote in message
news:OC**************@TK2MSFTNGP10.phx.gbl...
I want to know which account will be used when File.Exists are called in
ASP.NET ? Thx

Nov 19 '05 #3
That would be the account that ASP.Net is running under....

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Tony Cheng" <sd***@fdfsds.com> wrote in message
news:OC**************@TK2MSFTNGP10.phx.gbl...
I want to know which account will be used when File.Exists are called in
ASP.NET ? Thx

Nov 19 '05 #4
> the logged in user's account permissions will be used when File.Exists is
called.
Incorrect, but a really good wild guess. Someday a use may be found for such
guesswork. Unfortunately, the state of programming technology at this point
doesn't handle it very well.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"DotNetJerome" <reachjerome@_yahoo.com-remove-the-underscore-after@> wrote
in message news:59**********************************@microsof t.com... Hi,

the logged in user's account permissions will be used when File.Exists is
called.

Cheers,

Jerome. M

"Tony Cheng" wrote:
I want to know which account will be used when File.Exists are called in
ASP.NET ? Thx

Nov 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Random Person | last post: by
1 post views Thread by Daveyk0 | last post: by
11 posts views Thread by Marcelo López | last post: by
reply views Thread by David Cho | last post: by
7 posts views Thread by M. Simioni | last post: by
3 posts views Thread by Matt Lowrance | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.