I have configured my Business Application to use Windows Authentication. From everything that I have read I don't need to change anything, and it should just load the currently logged in user. This is not the case. In the Application_Loaded
method, the User
is empty.
Even when I upload the project to a server, I still get an empty user. Can anyone help me out?
After looking at this for a whole day, I've finally found the problem. I had to remove all of the <roles>
, <profile>
and <membership>
from the web.config
. I also added [ProfileUsage(IsExcluded=false)]
to the FriendlyName
property in the User
class.