Hi,
i am working in asp.net 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;
Windowslogin_click
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
Comments
Have to set the "Integrated Window Authentication" option in the IIS for this website.