Retrieving User credentials and Domain name through WMI in ASP.NE

Discussion in 'MCSD' started by =?Utf-8?B?dmlqdTgy?=, Aug 5, 2004.

  1. Hi,
    I'm working on ASP.NET web application in C# in Visual Studio. i want to
    develop an utility like; when an user will browse that site on his machine;
    his username should appear there in the site..
    I tried for that using WMI. I'm getting the usercredentials in console
    application. But when i use the same logic in web application it gives me
    null value. So in computer management i gave the security for cimv2 as
    'RemoteEnabled' then it started showing me the username. But when i'm
    deploying it on testing machine it is not showing me anything. So please help
    me in this matter.
     
    =?Utf-8?B?dmlqdTgy?=, Aug 5, 2004
    #1
    1. Advertising

  2. HI Vijay,


    Web Application run under the context of user ASPNET. Maybe thats what is
    cauing the problems. You can use the impersonate tab in your web.config.

    Regards
    Vipul

    "viju82" wrote:

    > Hi,
    > I'm working on ASP.NET web application in C# in Visual Studio. i want to
    > develop an utility like; when an user will browse that site on his machine;
    > his username should appear there in the site..
    > I tried for that using WMI. I'm getting the usercredentials in console
    > application. But when i use the same logic in web application it gives me
    > null value. So in computer management i gave the security for cimv2 as
    > 'RemoteEnabled' then it started showing me the username. But when i'm
    > deploying it on testing machine it is not showing me anything. So please help
    > me in this matter.
    >
     
    =?Utf-8?B?VmlwdWwgUGF0ZWwgKE1WUCk=?=, Sep 7, 2004
    #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. Molly_K

    ASP.net cannot get logon user name

    Molly_K, Aug 8, 2006, in forum: General Computer Support
    Replies:
    1
    Views:
    4,348
    Molly_K
    Aug 10, 2006
  2. crest

    Retrieving email name

    crest, Aug 17, 2007, in forum: Computer Support
    Replies:
    6
    Views:
    691
  3. -=rjh=-
    Replies:
    2
    Views:
    2,317
    -=rjh=-
    Jul 16, 2006
  4. jjpoon00
    Replies:
    4
    Views:
    1,067
    Webster CWNA
    May 18, 2008
  5. Limited Wisdom
    Replies:
    7
    Views:
    797
    Jonathan Roberts
    Sep 13, 2006
Loading...

Share This Page