HttpPostedFile.SaveAs() permission error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jeff

    HttpPostedFile.SaveAs() permission error

    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
  • Kevin Spencer

    #2
    Re: HttpPostedFile. SaveAs() permission error

    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

    Big Things are made up of
    Lots of Little Things.

    "Jeff" <jeff_winkler@b enefitstreet.co m> wrote in message
    news:654145d3.0 310271141.647e6 84@posting.goog le.com...[color=blue]
    > 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[/color]


    Comment

    Working...