I assume that your application doesn't use any logon or authentication - which is the default for web applications in VS.
When you're debugging you're using the web server built into VS itself (unless you've configured it to use IIS) - because VS runs within the context of your own ID it shows your details. When the web site is running from IIS it will be running with anonymous access enabled so there will be no user context set for it, hence the blank string.
Pete