HttpPostedFile.SaveAs() permission error

  • Thread starter Thread starter Jeff
  • Start date Start date
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
 
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.
 
Back
Top