Re: about file access permission in asp.net

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

  • Next message: |{evin: "Enumerate roles when using forms auth"
    Date: Tue, 29 Apr 2003 21:50:28 -0500
    
    

    How did you change your permisssions...did you change the user in the
    machine.config, or did you give the aspnet user (machine.config user =
    machine) admin privileges? Check your machine.config that the
    username/password are valid. Usually password is auto unless you want to
    use another user (or change aspnet user's password). Don't forget domain
    names

    Domain\User

    I thought you'd see this error the minute you start up your app, but it's
    one thing to check....

    On Mon, 28 Apr 2003 13:44:02 +0800, Bruce Lee <princeliq@hotmail.com>
    wrote:

    > Now I give the ASP.NET user administrator permissions. But a new
    > exception
    > occurs. Here is the stack trace:
    >
    > [IOException: Logon failure: unknown user name or bad password.]
    > System.IO.__Error.WinIOError(Int32 errorCode, String str) +723
    > System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
    > access, FileShare share, Int32 bufferSize, Boolean useAsync, String
    > msgPath,
    > Boolean bFromProxy) +859
    > System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
    > access, FileShare share, Int32 bufferSize) +44
    > System.IO.File.Create(String path) +37
    > WebApplication1.WebForm1.Button1_Click(Object sender, EventArgs e) in
    > c:\inetpub\wwwroot\WebApplication1\WebForm1.aspx.vb:39
    > System.Web.UI.WebControls.Button.OnClick(EventArgs e)
    >
    > System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePo
    > stBackEvent(String eventArgument)
    > System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
    > sourceControl, String eventArgument)
    > System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
    > System.Web.UI.Page.ProcessRequestMain()
    >
    > thanks,
    > Bruce Lee
    > "Craig Deelsnyder [MVP]" <cdeelsny@nospamyahoo.com> wrote in message
    > news:oproboy9v8bulmub@news.microsoft.com...
    >> 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
    >
    >
    >

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

  • Next message: |{evin: "Enumerate roles when using forms auth"