Solved

Windows Username not being displayed on IIS 6.0

Posted on 2013-01-25
10
167 Views
Last Modified: 2013-01-28
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
Comment
Question by:CBB
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 
LVL 41

Expert Comment

by:guru_sami
ID: 38819548
you have <allow users="*"/>

instead  deny anonymous access to your site by adding:

<deny users="?"/>
0
 

Author Comment

by:CBB
ID: 38819572
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
 
LVL 41

Expert Comment

by:guru_sami
ID: 38819632
How are you accessing the username?
Can you turn off impersonation by setting it to false.
0
Independent Software Vendors: 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!

 

Author Comment

by:CBB
ID: 38819681
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
 

Author Comment

by:CBB
ID: 38819714
sorry in the visual basic 2005 code I have
 dim logon_user string
 logon_user - system.web.httpcontext.current.user.identity.name

thanks
0
 
LVL 41

Accepted Solution

by:
guru_sami earned 500 total points
ID: 38819741
Hmmm...I am not sure...can you try: WindowsIdentity.GetCurrent().Name
0
 

Author Closing Comment

by:CBB
ID: 38827599
thanks very much
0
 
LVL 41

Expert Comment

by:guru_sami
ID: 38827616
Glad that helped. So did you had to do any other modifications or just the last comment did the trick?
0
 

Author Comment

by:CBB
ID: 38827644
Just the last comment did the trick
0
 
LVL 41

Expert Comment

by:guru_sami
ID: 38827654
Cool...thanks.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question