Thread.CurrentPrincipal.Identity.Name

  • Thread starter Thread starter Ken
  • Start date Start date
K

Ken

I'm testing on web application (.net 1.1 using C#).
when I tested the application on local machine (IIS5.0,XP professinal), it
return value for Thread.CurrentPrincipal.Identity.Name
However, When I tested the same application on the server (IIS6.0, 2003
Server), it return nothing for
Thread.CurrentPrincipal.Identity.Name.
the application setuped

anybody has idea?
 
you shouldn't be using the thread identity (as its usually the asp.net
account). You shoudl be using HttpRequest.LogonUserIdentity.

-- bruce (sqlwork.com)
 
I think HttpRequest.LogonUserIdentity is available from .net 3.0

I'm using 1.1.

"bruce barker (sqlwork.com)"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top