Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Thread.CurrentPrincipal.Identity.Name

Reply
Thread Tools

Thread.CurrentPrincipal.Identity.Name

 
 
Ken
Guest
Posts: n/a
 
      11-14-2007
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?


 
Reply With Quote
 
 
 
 
=?Utf-8?B?YnJ1Y2UgYmFya2VyIChzcWx3b3JrLmNvbSk=?=
Guest
Posts: n/a
 
      11-14-2007
you shouldn't be using the thread identity (as its usually the asp.net
account). You shoudl be using HttpRequest.LogonUserIdentity.

-- bruce (sqlwork.com)


"Ken" wrote:

> 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?
>
>
>

 
Reply With Quote
 
 
 
 
Ken
Guest
Posts: n/a
 
      11-14-2007
I think HttpRequest.LogonUserIdentity is available from .net 3.0

I'm using 1.1.

"bruce barker (sqlwork.com)"
< > wrote in message
news:FD8C2B15-BD85-4AC0-A348-...
> you shouldn't be using the thread identity (as its usually the asp.net
> account). You shoudl be using HttpRequest.LogonUserIdentity.
>
> -- bruce (sqlwork.com)
>
>
> "Ken" wrote:
>
>> 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?
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57