File write access on server

Discussion in 'ASP .Net' started by Lloyd Sheen, Jan 22, 2004.

  1. Lloyd Sheen

    Lloyd Sheen Guest

    I found a sample of uploading a file to the server. This works fine. I
    just created a virtual directory placed the aspx file in it and navigated to
    the directory. No problem there.

    Then to make it "better" I created a new application and copied the code and
    HTML to a new web app. When I run exactly the same code I get a message ::

    Upload of File KazaAmy.jpg to c:\inetpub\wwwroot\UploadFiles failed for the
    following reason: Access to the path
    "c:\inetpub\wwwroot\UploadFiles\KazaAmy.jpg" is denied.

    The original is not compiled and I have compared the properties of both web
    folders and the only difference is that the application has "Application
    Settings"

    Any ideas??

    Lloyd Sheen
     
    Lloyd Sheen, Jan 22, 2004
    #1
    1. Advertising

  2. Try to check the IIS authentication settings and check <authentication> and
    <identity> sections of the web.config file for both virtual sites .

    HtH,
    Andrea
    --
    This posting is provided "AS IS" with no warranties, and confers no rights.

    "Lloyd Sheen" <> wrote in message
    news:WIRPb.90060$...
    > I found a sample of uploading a file to the server. This works fine. I
    > just created a virtual directory placed the aspx file in it and navigated

    to
    > the directory. No problem there.
    >
    > Then to make it "better" I created a new application and copied the code

    and
    > HTML to a new web app. When I run exactly the same code I get a message

    ::
    >
    > Upload of File KazaAmy.jpg to c:\inetpub\wwwroot\UploadFiles failed for

    the
    > following reason: Access to the path
    > "c:\inetpub\wwwroot\UploadFiles\KazaAmy.jpg" is denied.
    >
    > The original is not compiled and I have compared the properties of both

    web
    > folders and the only difference is that the application has "Application
    > Settings"
    >
    > Any ideas??
    >
    > Lloyd Sheen
    >
    >
     
    Andrea D'Onofrio [MSFT], Jan 22, 2004
    #2
    1. Advertising

  3. Lloyd Sheen

    Lloyd Sheen Guest

    Thanks that was it.

    Lloyd Sheen

    "Andrea D'Onofrio [MSFT]" <> wrote in message
    news:...
    > Try to check the IIS authentication settings and check <authentication>

    and
    > <identity> sections of the web.config file for both virtual sites .
    >
    > HtH,
    > Andrea
    > --
    > This posting is provided "AS IS" with no warranties, and confers no

    rights.
    >
    > "Lloyd Sheen" <> wrote in

    message
    > news:WIRPb.90060$...
    > > I found a sample of uploading a file to the server. This works fine. I
    > > just created a virtual directory placed the aspx file in it and

    navigated
    > to
    > > the directory. No problem there.
    > >
    > > Then to make it "better" I created a new application and copied the code

    > and
    > > HTML to a new web app. When I run exactly the same code I get a message

    > ::
    > >
    > > Upload of File KazaAmy.jpg to c:\inetpub\wwwroot\UploadFiles failed for

    > the
    > > following reason: Access to the path
    > > "c:\inetpub\wwwroot\UploadFiles\KazaAmy.jpg" is denied.
    > >
    > > The original is not compiled and I have compared the properties of both

    > web
    > > folders and the only difference is that the application has "Application
    > > Settings"
    > >
    > > Any ideas??
    > >
    > > Lloyd Sheen
    > >
    > >

    >
    >
     
    Lloyd Sheen, Jan 22, 2004
    #3
    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. Replies:
    1
    Views:
    384
    Victor Bazarov
    Feb 13, 2008
  2. Rob Knop
    Replies:
    1
    Views:
    291
  3. Microsoft

    Write Access to Access DataBase

    Microsoft, Aug 14, 2003, in forum: ASP .Net Security
    Replies:
    0
    Views:
    112
    Microsoft
    Aug 14, 2003
  4. Iulian Ilea
    Replies:
    1
    Views:
    318
    pcx99
    Dec 21, 2006
  5. Tim Chase
    Replies:
    0
    Views:
    93
    Tim Chase
    Dec 16, 2013
Loading...

Share This Page