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

Discussion in 'MCSD' started by Guest, Aug 5, 2004.

  1. Guest

    Guest Guest

    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.
     
    Guest, Aug 5, 2004
    #1
    1. Advertisements

  2. Guest

    Guest Guest

    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
     
    Guest, Sep 7, 2004
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.