Windows authentication in


i am working in and sql server.
i have a requirement like on index.aspx page user will have an option to login with there defined username/password or they can login by windows authentication.
My code is working fine when i am working on my system but when i am setting my project on iis and accessing from different system, i get windows id as iis system name.
I am not able to find whether its IIS setup issue or my code is missing something.

code is as follows;


Dim user As WindowsPrincipal = New WindowsPrincipal(WindowsIdentity.GetCurrent())

lblmsg.Text = user.Identity.Name
End sub

in the above in lblmsg i am getting only IIS server system name.
Can any one help me on this issue.
It would be a great great help.

Thank you


  • Hi,

    Have to set the "Integrated Window Authentication" option in the IIS for this website.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion