hi all,


 I have created an aps.net application. In web.config file we have 
<authentication mode="Windows"> but we are not using authorization tag. also 

we have <identity impersonate="true"/>. We are also using the anonymousaccess 

and giving one local user in the fields of anonymous access. It is required 

for our application.

 Now my problem is that, i want the name of user who is accessing the 

application. for example, if a person accesses the application from a remote 

computer, then i need that the identity of that user is displayed. During 

current situation, when i use "User.Identity.Name", then on runtime, null is 

returned from this property. and when i use 

"System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString()", 

then on runtime, when i access the application from a remote pc,then the name 

of user given as anonymous access is display rather than the actual user. Can 

somebody help me how can i get the actual user name keeping the conditions 

mentioned in first paragraph as it is.

 

 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[Non-text portions of this message have been removed]



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to