HttpPostedFile.SaveAs() permission error

J

Jeff

I am using the HttpPostedFile to allow users to upload files to a
server farm. The SaveAs() saves to a shared network path
(\\SERVER\SHARE) so that no matter which web server is taking the
request, all uploaded files go to the same location. The .SaveAs()
call throws the error "unknown user name or bad password".

The file share referenced has Full Permission granted to the Everyone
group on the network. I cannot figure out why the save is causing a
problem. Is there some way to provide the SaveAs() method with login
credentials?

Thanks
 
K

Kevin Spencer

Your ASP.Net apps are running on accounts that belong to the local machines
on which your apps are running. I believe they need to run under either
"system" (in which they will have the same rights as the system on that
machine) or as a Domain user account.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top