By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,470 Members | 924 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,470 IT Pros & Developers. It's quick & easy.

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

P: n/a
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?
Mar 15 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
if i add

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

to my web config i just get error 500

"Daniel" <so*******************@yahoo.com> wrote in message
news:ew*************@TK2MSFTNGP10.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?

Mar 15 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.