If you are getting an empty string returned back it is probably because you do not have any authentication configured in your applications web.config file.
I have an asp.net program setup to use FORMS authentication
<authentication mode="Forms" />
and when i execute the command
response.write(User.Identity.Name)
my username is returned.
Try adding the following lines of code to your app to see your authentication settings
Response.Write("<br>User.Identity.AuthenticationType=" & User.Identity.AuthenticationType)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.