473,406 Members | 2,208 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Cannot get User.Identity.Name

Hello:

I am running IIS 6.0 on a Windows 2003 Server (Standard). I have a simple
webpage to display the User.Identity Name

<HTML>
<%=User.Identity.Name%>
</HTML>

I checked IIS Manager and under Directory Security, Enable Anonymous Access
is checked.

But the above property results in an empty string.

What am I doing wrong?

Thanks.
Nov 19 '05 #1
3 2934
If anonymous is turned on, how do you expect the server to know who is
logged in? Anonymous is just that "anonymous", meaning, no user identity.

"vvenk" <vv***@discussions.microsoft.com> wrote in message
news:00**********************************@microsof t.com...
Hello:

I am running IIS 6.0 on a Windows 2003 Server (Standard). I have a simple
webpage to display the User.Identity Name

<HTML>
<%=User.Identity.Name%>
</HTML>

I checked IIS Manager and under Directory Security, Enable Anonymous
Access
is checked.

But the above property results in an empty string.

What am I doing wrong?

Thanks.

Nov 19 '05 #2
I solved the issue!

If Anonymous access is allowed, the User.Identity Name will always be an
empty string. Otherwise it returns the user's login name.

venki

"vvenk" wrote:
Hello:

I am running IIS 6.0 on a Windows 2003 Server (Standard). I have a simple
webpage to display the User.Identity Name

<HTML>
<%=User.Identity.Name%>
</HTML>

I checked IIS Manager and under Directory Security, Enable Anonymous Access
is checked.

But the above property results in an empty string.

What am I doing wrong?

Thanks.

Nov 19 '05 #3
Pat
Unless you need Anonoymous logon if not uncheck it an allow Windows
Integrated..
Patrick

"vvenk" <vv***@discussions.microsoft.com> wrote in message
news:6F**********************************@microsof t.com...
I solved the issue!

If Anonymous access is allowed, the User.Identity Name will always be an
empty string. Otherwise it returns the user's login name.

venki

"vvenk" wrote:
Hello:

I am running IIS 6.0 on a Windows 2003 Server (Standard). I have a simple webpage to display the User.Identity Name

<HTML>
<%=User.Identity.Name%>
</HTML>

I checked IIS Manager and under Directory Security, Enable Anonymous Access is checked.

But the above property results in an empty string.

What am I doing wrong?

Thanks.

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Dan Bart | last post by:
I am using an application which is a modification of IBuySpy Portal. It is using Forms authentication. Users login and their name is added to Context Then I use: ...
8
by: Razak | last post by:
Hi, I have a class which basically do Impersonation in my web application. From MS KB sample:- ++++++++++++++++++++code starts Dim impersonationContext As...
15
by: Tom Nowak | last post by:
I am writing a webapp in which a user is required to enter a login id and password on a login form. I have forms authenticaion coded in my web.config. Once the user is logged in, I want to use the...
3
by: Patrick Olurotimi Ige | last post by:
How can i send LOGON_USER or User.Identity.Name to the Database? I'm working on a survey which is intranet based with Windows Authentication. I can get the current user by calling LOGON_USER or...
4
by: danman226 | last post by:
I will be using a companyname, user name, and password to authenicate users in my system. I am trying to save the company name in the session for later use. I cannot access the Session object in...
10
by: vvenk | last post by:
Hello: When I tried to use an Access database, I get the following exception: Server Error in '/WebGrid' Application....
2
by: dmateer | last post by:
I have the following code in an asp.net page: System.Data.OleDb.OleDbConnection cn = new System.Data.OleDb.OleDbConnection(); cn.ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data...
3
by: =?Utf-8?B?Q2hhcmxlc0E=?= | last post by:
hi folks, I've got XP pro service pack 2 VS 2005 TSE with ASP.net 2.0 and C# I'm doing an example from Stephen Walther's so far excellent book and he has a whole load of stuff to add the...
4
by: =?Utf-8?B?QXZhRGV2?= | last post by:
ASP.Net 2. We are migrating to Windows 2008 64 bit Server with IIS 7 from Windows 2003 32 Bit with IIS 6. A few library classes we wrote uses impersonation in code like explained in this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.