From what I understand you want to write to a network server from an
application running under IIS. Correct?
The user that ASP.NET normally runs under, only exists locally, the remote
server has no knowledge of it, hence NTFS will deny it. The way I have used
to accomplish the same task is to select "Basic Authentication" on IIS, in
addition to impersonation.This will prompt for a username and password, be
aware that the password will be sent in clear text over the network, it
might not be a problem if it will only be used over LAN. This method is the
only way I could find to make IIS act on the behalf of the user, it wont be
IIS, but the user that actually writes the file.
"Windows Authentication" will not allow IIS to act on the behalf of the
user.
Hope this helped.
Chris
"Miha" <Mi**@discussions.microsoft.com> wrote in message
news:BA**********************************@microsof t.com...
Hi.
I want to write some text ("bla bla") to a file something.txt. That file
is
accessible on http://192.168.0.1/dir/something.txt (I'm on LAN side).
I can read from that file. Web server is on IIS, I set to allow everyone
NTFS full control premission, and on IIS server I set allow read and
write.
I found some ideas in library:
http://msdn.microsoft.com/library/en...nginternet.asp
and
http://msdn.microsoft.com/library/en...ClassTopic.asp
and
http://msdn.microsoft.com/library/en...ClassTopic.asp
But I still cant write some sample code to write data in that file. Can
someone help me with some simple sample?
Tnx
by Miha