I Googled about this, but none of solutions solved this situation.
My web.config:
<configuration>
<system.web>
<customErrors mode="Off"/>
<compilation debug="true">
</compilation>
<authentication mode="Windows" />
</system.web>
</configuration>
My aspx page:
<script runat="server">
void Page_Load(object sender, EventArgs e)
{
string opl = System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString();
Response.Write("Name:" + opl);
}
</script>
I'm getting an empty string, any ideas?I tried Request.ServerVariables
but get an empty string for user also.