G
Guest
This is a duplicate thread I started in aspnet.security. I wasn't sure which
is the correct thread for this..
I have a web app that allowes you to upload files to a shared forlder and
also read them off a list of uploaded files.
I created a shared drive on the destination server, and using a mapped
virtual folder to the shared, I can view the files from the shared drive.
My problem is writing the files. We're using the html input control to
uplaod files. We're also using System.IO.FileStream Write method to do the
job. It works until we need to write to the shared drive.
I've looked at various threads and other listings, but can someone add some
code to do this? I'm not sure how to add a credentials object to the write
operation. I've configured my config file to impersonate. I'm also getting
errors wen I add the domain\user and password elements in the config file. If
I were to get it right, won't this impact the other part of my app: reading
files through the virtual folder? Is there some code I can use?
Thanks
is the correct thread for this..
I have a web app that allowes you to upload files to a shared forlder and
also read them off a list of uploaded files.
I created a shared drive on the destination server, and using a mapped
virtual folder to the shared, I can view the files from the shared drive.
My problem is writing the files. We're using the html input control to
uplaod files. We're also using System.IO.FileStream Write method to do the
job. It works until we need to write to the shared drive.
I've looked at various threads and other listings, but can someone add some
code to do this? I'm not sure how to add a credentials object to the write
operation. I've configured my config file to impersonate. I'm also getting
errors wen I add the domain\user and password elements in the config file. If
I were to get it right, won't this impact the other part of my app: reading
files through the virtual folder? Is there some code I can use?
Thanks