Home All Groups Group Topic Archive Search About

How to access a network file path \\foo\bar.txt from an .aspx and from a custom IHttpHandler?

Author
15 Mar 2006 5:40 AM
Daniel
How to access a network file path \\foo\bar.txt from an .aspx and from a
custom IHttpHandler?

How to specify which account that aspx application should use when doing
file IO from network paths?

When I try to open the file from .aspx the file read throws: Logon failure:
Logon failure: unknown user name or bad password.
When I try to open the file from a custom IHttpHandler the file read throws:
Logon failure: unknown user name or bad password.

\\foo\bar.txt grants read access to the group "Everyone" and everyone but my
aspx application are able to read \\foo\bar.txt

How to specify which account that aspx application should use when doing
file IO from network paths?

Author
15 Mar 2006 6:30 AM
Daniel
if i add

<identity impersonate="true" userName="domainzzz/userzzz" password="passzzz"
/>

to my web config i just get error 500



Show quote
"Daniel" <softwareengineer98***@yahoo.com> wrote in message
news:Ob0B8J$RGHA.5728@tk2msftngp13.phx.gbl...
> How to access a network file path \\foo\bar.txt from an .aspx and from a
> custom IHttpHandler?
>
> How to specify which account that aspx application should use when doing
> file IO from network paths?
>
> When I try to open the file from .aspx the file read throws: Logon
failure:
> Logon failure: unknown user name or bad password.
> When I try to open the file from a custom IHttpHandler the file read
throws:
> Logon failure: unknown user name or bad password.
>
> \\foo\bar.txt grants read access to the group "Everyone" and everyone but
my
> aspx application are able to read \\foo\bar.txt
>
> How to specify which account that aspx application should use when doing
> file IO from network paths?
>
>

AddThis Social Bookmark Button