I have done a bunch of research about this, but can't find a solution to this problem.
my web.config :
<system.web>
<compilation debug="true" targetFramework="4.5.1"/>
<httpRuntime targetFramework="4.5.2"/>
<authentication mode="Windows"/>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
and for some reason
string User = User.Identity.Name;
is always blank.
IIS Windows authentication is the only option that is enabled.
i have tried the
[Authorize]
same result.
I checked the IIS config file to make sure
<windowsAuthentication enabled="true">
is set to true.