FileUpload1 Access problem

Discussion in 'ASP .Net' started by Rafael tejera, Nov 7, 2007.

  1. I'm having problem with a upload file

    My server is a Microsoft Windows 2003. IIS 6


    FileUpload1.PostedFile.SaveAs(InputPath + "\\" + filename);


    Access to the path
    'C:\Inetpub\vhosts\domain\httpdocs\Contents\Member\Default\400ea89b-1.avi'
    is denied.

    I had gave access to aspnet and still problem persist.

    Any idea?


    RT
     
    Rafael tejera, Nov 7, 2007
    #1
    1. Advertising

  2. Rafael tejera

    Teemu Keiski Guest

    In Windows Server 2003 correct to user to set permissions for is NETWORK
    SERVICE (controlled by application pool settings of your application).
    ASPNET would be the user in 2000/XP.


    --
    Teemu Keiski
    AspInsider, ASP.NET MVP
    http://blogs.aspadvice.com/joteke
    http://teemukeiski.net



    "Rafael tejera" <> wrote in message
    news:...
    > I'm having problem with a upload file
    >
    > My server is a Microsoft Windows 2003. IIS 6
    >
    >
    > FileUpload1.PostedFile.SaveAs(InputPath + "\\" + filename);
    >
    >
    > Access to the path
    > 'C:\Inetpub\vhosts\domain\httpdocs\Contents\Member\Default\400ea89b-1.avi'
    > is denied.
    >
    > I had gave access to aspnet and still problem persist.
    >
    > Any idea?
    >
    >
    > RT
    >
    >
    >
     
    Teemu Keiski, Nov 8, 2007
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. luican
    Replies:
    3
    Views:
    12,390
    Aaron W. West
    Jun 4, 2004
  2. david
    Replies:
    2
    Views:
    1,655
    Ken Cox [Microsoft MVP]
    Nov 24, 2003
  3. Horace Nunley

    is fileupload1 visible

    Horace Nunley, Sep 27, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    349
    Horace Nunley
    Sep 27, 2006
  4. Edge1960

    FileUpload1.FileName Question

    Edge1960, Mar 6, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    543
    Edge1960
    Mar 6, 2007
  5. Edge1960

    FileUpload1.FileName Question

    Edge1960, Mar 6, 2007, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    170
    Edge1960
    Mar 6, 2007
Loading...

Share This Page