Re: about file access permission in asp.net

From: Craig Deelsnyder [MVP] (cdeelsny_at_nospamyahoo.com)
Date: 04/28/03

  • Next message: Bruce Lee: "Re: about file access permission in asp.net"
    Date: Sun, 27 Apr 2003 23:48:35 -0500
    
    

    The aspnet_wp user that ASP.NET uses has limited privileges. You can
    either change the user that ASP.NET runs under in your machine.config
    (<processModel> section), or give aspnet_wp user access to the network
    drive through network security.

    This was changed since 'legacy' versions of ASP, to keep malicious code
    from running under the SYSTEM account....

    On Mon, 28 Apr 2003 12:40:28 +0800, Bruce Lee <princeliq@hotmail.com>
    wrote:

    > Hi,
    >
    > I am trying to read a file from my asp.net application. The file is in a
    > shared folder on another computer in our intranet. But the application
    > throw
    > an exception:
    >
    > System.IO.IOException: The referenced account is currently locked out and
    > may not be logged on to.
    >
    > What's wrong with that, the same code works fine in my windows form.
    >
    > Thanks for your help!
    > Bruce Lee
    >
    >
    >

    -- 
    Craig Deelsnyder
    Microsoft MVP -  ASP/ASP.NET
    

  • Next message: Bruce Lee: "Re: about file access permission in asp.net"