• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 170
  • Last Modified:

Windows Username not being displayed on IIS 6.0

Created a website on Visual Basic 2005 and I run it on the local PC01
http://localhost:57639/telephone/phone.aspx and it displays the windows username
Create a virtual directory on windows server 2003 service pack 2 in IIS 6.0
then using visual basic 2005 menu option -> build -> Publish Web Site
When I run the following url on any other client PC
servername/telephone/phone.aspx the windows username is not being displayed

I am attaching the following the web.config file
I am attaching a screen of the IIS 6.0 directory security

thanks so much for all your assistance
IIS6.0.png
Web.config
0
CBB
Asked:
CBB
  • 5
  • 5
1 Solution
 
guru_samiCommented:
you have <allow users="*"/>

instead  deny anonymous access to your site by adding:

<deny users="?"/>
0
 
CBBNet AdminAuthor Commented:
hi Guru_sami

 I have made the changes and a username is now being displayed but I am getting the user that is logon on the server and not the client windows user

thanks
0
 
guru_samiCommented:
How are you accessing the username?
Can you turn off impersonation by setting it to false.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
CBBNet AdminAuthor Commented:
hi

 I changed  set identity impersonate="false" in the web.config
 and still everyone is getting the username that is logon on the server.

thanks
0
 
CBBNet AdminAuthor Commented:
sorry in the visual basic 2005 code I have
 dim logon_user string
 logon_user - system.web.httpcontext.current.user.identity.name

thanks
0
 
guru_samiCommented:
Hmmm...I am not sure...can you try: WindowsIdentity.GetCurrent().Name
0
 
CBBNet AdminAuthor Commented:
thanks very much
0
 
guru_samiCommented:
Glad that helped. So did you had to do any other modifications or just the last comment did the trick?
0
 
CBBNet AdminAuthor Commented:
Just the last comment did the trick
0
 
guru_samiCommented:
Cool...thanks.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now