473,405 Members | 2,334 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,405 software developers and data experts.

Identity Name

I am using

string username =
System.Security.Principal.WindowsIdentity.GetCurre nt().Name;

to retrieve the current username. This works fine running under the
development server (Cassini) but always returns DOMAIN\ASPNET when running
under IIS 5.1 (Win XP). I have turned on Integrated Authentication and
disabled all others under IIS Admin but still get DOMAIN\ASPNET. Any ideas?

Thanks,

--

Andrew Robinson

Jun 1 '06 #1
2 875
Check the
http://msdn2.microsoft.com/en-us/lib...text.user.aspx

HttpContext.User
"Andrew Robinson" <ne****@nospam.nospam> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
I am using

string username =
System.Security.Principal.WindowsIdentity.GetCurre nt().Name;

to retrieve the current username. This works fine running under the
development server (Cassini) but always returns DOMAIN\ASPNET when running
under IIS 5.1 (Win XP). I have turned on Integrated Authentication and
disabled all others under IIS Admin but still get DOMAIN\ASPNET. Any ideas?
Thanks,

--

Andrew Robinson

Jun 1 '06 #2
thanks!

--

Andrew Robinson
"sloan" <sl***@ipass.net> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Check the
http://msdn2.microsoft.com/en-us/lib...text.user.aspx

HttpContext.User
"Andrew Robinson" <ne****@nospam.nospam> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
I am using

string username =
System.Security.Principal.WindowsIdentity.GetCurre nt().Name;

to retrieve the current username. This works fine running under the
development server (Cassini) but always returns DOMAIN\ASPNET when
running
under IIS 5.1 (Win XP). I have turned on Integrated Authentication and
disabled all others under IIS Admin but still get DOMAIN\ASPNET. Any

ideas?

Thanks,

--

Andrew Robinson


Jun 1 '06 #3

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

Similar topics

112
by: Andy | last post by:
Hi All! We are doing new development for SQL Server 2000 and also moving from SQL 7.0 to SQL Server 2000. What are cons and pros for using IDENTITY property as PK in SQL SERVER 2000? Please,...
24
by: E. Robert Tisdale | last post by:
In article <1109278095.279964.320810@g14g2000cwa.googlegroups.com>, E. Robert Tisdale <e.robert.tisdale@gmail.com> wrote: Note that this is *not* <E.Robert.Tisdale@jpl.nasa.gov>.
2
by: WhiteEagl | last post by:
Hello, I would need some help with this identity column problem in SQLServer. I have a database with two tables. The Parent table has an Identity column. Parent (ParentID IDENTITY, Name)...
9
by: Micheal | last post by:
How do I get the @@identity value without using stored procedures in C#? I have the a table named 'sports' that has an @@identity value for the primary key. What I want to do is after I insert...
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...
2
by: Abraham Andres Luna | last post by:
hello everyone, does anyone know why i can't access the HttpContext.Current.User.Identity.Name property in a .cs file? this is the index.aspx page: <%@ Page Language="C#" %> <script...
3
by: Rob | last post by:
Hi all, I have a bit of a complicated question, hope we have an SQL guru out there that can help us solve this killer problem. Due to the size of SQL Database we have (largest in the US), we...
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: Doogie | last post by:
Hi, I am using HttpContext.Current.User.Identity.Name to get a user id from a web application. I then use that as part of a name of a cookie I'm writing. 30 minutes later I do a refresh of this...
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?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.