Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > General Computer Support > cannot get logon user name

Thread Tools cannot get logon user name

Molly_K Molly_K is offline
Junior Member
Join Date: Aug 2006
Posts: 5
Hi all,

I have worked on a program using and I have to get the name and domain of the logon user in Windows while the user do not need to input the name and password again as they had logged on.
I have used User.Identity.Name, HttpContext.Current.User.Identity.Name() and many methods, however, all doesn't work. Some of them returns an empty string, some returns the username who run the IIS, which is not my expectation.

I have disabled the annoymous access and set the Integrated Windows Authentication. impersonate is set to true. When I run the application, a window being pop and ask me for inputting username and password.

Can anyone help me, please. I'm stick with this problem for a long time.
Reply With Quote
Molly_K Molly_K is offline
Junior Member
Join Date: Aug 2006
Posts: 5
Sorry, seems I have put on the wrong place.

Please ignore this post.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post cannot get logon user name in window Molly_K ASP .Net 0 08-10-2006 02:46 AM
Re: Events: Logon vs Account Logon Jeroen Wijnands MCSA 0 03-06-2006 03:45 PM
Question Help: Logon vs Account Logon, Local Logon vs Authentication CJH Microsoft Certification 0 01-04-2006 04:03 PM
What is best practice: Combining anonymous logon with windows logon? Kjell Kristiansson ASP .Net Security 0 11-30-2005 12:53 PM
Problem: XP Home Logon Names Vanish - Cant Logon Graham Computer Support 0 01-24-2004 11:34 AM