I am trying to get the windows logged on user name inside the user control using ASP.NET and C#. I am using (System.Web.HttpContext.Current.User.Identity.Name) to get the current windows logged on username. It is giving NETWORK SERVICE as the username instead of current logged in username. After some research i have changed the sitefinity web.config. I have changed authentication mode to windows and now i am getting current logged on username. But, the sitefinity admin site is not working and everything else is working fine.
getting error message when accessing admin site
Server Error in '/' Application.
Requested URL: /sitefinity/admin/default.aspx
Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
Please post if you have any ideas how to get current logged on username without changing the authentication mode to windows or post how to recover the sitefinity admin site.
Thanks in advance..........
getting error message when accessing admin site
Server Error in '/' Application.
This type of page is not served.
Description: The type of page you have requested is not served because it has been explicitly forbidden. The extension '.aspx' may be incorrect. Please review the URL below and make sure that it is spelled correctly.Requested URL: /sitefinity/admin/default.aspx
Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
Please post if you have any ideas how to get current logged on username without changing the authentication mode to windows or post how to recover the sitefinity admin site.
Thanks in advance..........