I have installed the Time Tracker on my Client Machine (WINDOWS XP PRO SP2, IIS 5.1) and have successfully changed the web.config file to use windows authentication instead of Forms authentication: I have since installed the time tracker project on a Windows
2003 Server runnig IIS 6.0 and made the same modifications to the web.config file. When I run the page I get the following error displayed in the browser: Server Error in '/TTWebCSVS' Application. --------------------------------------------------------------------------------
Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception
Details: System.NullReferenceException: Object reference not set to an instance of an object. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception
can be identified using the exception stack trace below. Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.] ASPNET.StarterKit.TimeTracker.BusinessLogicLayer.TTUser.GetDisplayName(String userName, String& firstName,
String& lastName) ASPNET.StarterKit.TimeTracker.BusinessLogicLayer.TTUser.Load() ASPNET.StarterKit.TimeTracker.Web.Global.Application_AuthenticateRequest(Object sender, EventArgs e) System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()
+60 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032 Can any one tell me why it does it work and what I need to do to make it work?
I seem to have found the answer on my own. I changed the to and this seems to make it work. I don't understand why it did not work with ActiveDirectory. I would have thought ActiveDirectory to be the prefered method...
mzem
Member
10 Points
2 Posts
Windows Authentication
Jan 12, 2005 03:56 PM|LINK
mzem
Member
10 Points
2 Posts
Re: Windows Authentication
Jan 13, 2005 12:40 PM|LINK
eranil84
Member
2 Points
2 Posts
Re: Windows Authentication
Jul 17, 2009 11:04 AM|LINK
Hi mzem,
I want to enable Windows authentication in my Time tracker application.
Did the settings as per your comments.
<add key="UserAccountSource" value="WindowsSAM" />
<authentication mode="Windows" />
<!-- IMPERSONATION
To gain access to an Active Directory, the ASPNET process must impersonate an dentity
that has sufficient access rights.
-->
<identity impersonate="false" userName="MyDomain\UserNameWithAccessToAD"
password="" />
But, Authentication was not successful. Error message:
HTTP 401.1 - Unauthorized: Logon Failed
Internet Information Services
Did you make any change to database table 'aspnet_users' or 'aspnet_membership' in order to make the windows auth work.
Or
Did you create a new class 'TTUser' for the same purpose.
please guide me to enable windows auth in Time Tracker application.
Thanks,
Anil Kumar
eranil84@gmail.com