Solved

Windows Username not being displayed on IIS 6.0

Posted on 2013-01-25
10
162 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:cbbisu
  • 5
  • 5
10 Comments
 
LVL 41

Expert Comment

by:guru_sami
Comment Utility
you have <allow users="*"/>

instead  deny anonymous access to your site by adding:

<deny users="?"/>
0
 

Author Comment

by:cbbisu
Comment Utility
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
Comment Utility
How are you accessing the username?
Can you turn off impersonation by setting it to false.
0
 

Author Comment

by:cbbisu
Comment Utility
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:cbbisu
Comment Utility
sorry in the visual basic 2005 code I have
 dim logon_user string
 logon_user - system.web.httpcontext.current.user.identity.name

thanks
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 41

Accepted Solution

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

Author Closing Comment

by:cbbisu
Comment Utility
thanks very much
0
 
LVL 41

Expert Comment

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

Author Comment

by:cbbisu
Comment Utility
Just the last comment did the trick
0
 
LVL 41

Expert Comment

by:guru_sami
Comment Utility
Cool...thanks.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now