How to find out the User Name The ASP.NET is run under in the code

Discussion in 'ASP .Net Security' started by David Shvartsman, Aug 11, 2003.

  1. Hell everyone. We have some problem with the security
    while trying to upload files trough the System.IO and
    getting the follow error:

    DirectoryNotFoundException: Could not find a part of the
    path "\\<server name>\share$".]
    System.IO.__Error.WinIOError(Int32 errorCode, String
    str) +287
    System.IO.Directory.InternalCreateDirectory(String
    fullPath, String path) +489
    System.IO.Directory.CreateDirectory(String path) +195
    _ASP.uploadForm_aspx.DoUpload(Object Sender, EventArgs
    e) +721
    System.Web.UI.WebControls.Button.OnClick(EventArgs e)
    +108

    System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEve
    ntHandler.RaisePostBackEvent(String eventArgument) +57
    System.Web.UI.Page.RaisePostBackEvent
    (IPostBackEventHandler sourceControl, String
    eventArgument) +18
    System.Web.UI.Page.RaisePostBackEvent
    (NameValueCollection postData) +33
    System.Web.UI.Page.ProcessRequestMain() +1277

    I was wandering how to find out the User Name The ASP.NET
    is run under in the code behind.

    Any input would be greatly appreciated
     
    David Shvartsman, Aug 11, 2003
    #1
    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. Amir Eshterayeh
    Replies:
    2
    Views:
    707
    Dino Chiesa [Microsoft]
    Oct 2, 2003
  2. David Shvartsman
    Replies:
    2
    Views:
    2,309
    David Shvartsman
    Aug 11, 2003
  3. Zachary Hilbun
    Replies:
    4
    Views:
    564
    Zachary Hilbun
    Dec 20, 2004
  4. Mufasa
    Replies:
    1
    Views:
    308
    Steve C. Orr [MCSD, MVP, CSM, ASP Insider]
    Jun 4, 2007
  5. Amir Eshterayeh

    How to find out the name of the virtual directory in ASP.NET

    Amir Eshterayeh, Sep 30, 2003, in forum: ASP .Net Security
    Replies:
    1
    Views:
    165
    Dino Chiesa [Microsoft]
    Oct 2, 2003
Loading...

Share This Page