views:

23

answers:

0

Dim domainUser As String = System.Security.Principal.WindowsIdentity.GetCurrent().Name

In the example project I downloaded from http://www.beansoftware.com/ASP.NET-Tutorials/Forms-Authentication-Active-Directory.aspx

I get the domain and user name I expect. When I use it in my project I get the anonymous windows account. The goal is to auto populate the user and domain name so that I won't force the user to type the domain name.

Let me know if you have anyideas where I can look to see what I did wrong. I did convert the project to vb to add it to my existing vb project.

Thanks