nickbro Posted November 1, 2011 Posted November 1, 2011 unknown. Anything showing up in the event viewer?
TheScarfedOne Posted November 1, 2011 Posted November 1, 2011 Only thing I could see was this event Event code: 3005 Event message: An unhandled exception has occurred. Event time: 31/10/2011 18:39:01 Event time (UTC): 31/10/2011 18:39:01 Event ID: f79ff55f19e54ea88962a8979938e8dc Event sequence: 135 Event occurrence: 1 Event detail code: 0 Application information: Application domain: /LM/W3SVC/1/ROOT/HAP7-1-129645574312551208 Trust level: Full Application Virtual Path: /HAP7 Application Path: D:\Program Files\HAP7\ Machine name: MAP-WEBS-01 Process information: Process ID: 48988 Process name: w3wp.exe Account name: IIS APPPOOL\HAP7AppPool Exception information: Exception type: NullReferenceException Exception message: Object reference not set to an instance of an object. at HAP.Web.Setup.newou_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) Request information: Request URL: http://localhost/HAP7/setup.aspx Request path: /HAP7/setup.aspx User host address: ::1 User: Is authenticated: False Authentication Type: Thread account name: IIS APPPOOL\HAP7AppPool Thread information: Thread ID: 14 Thread account name: IIS APPPOOL\HAP7AppPool Is impersonating: False Stack trace: at HAP.Web.Setup.newou_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
nickbro Posted November 2, 2011 Posted November 2, 2011 Ok, that isn't to do with the AD Browser loading. 10% is just the initial value. Have you looked at firebug for the JSON request.
teklogic Posted November 2, 2011 Author Posted November 2, 2011 Hi, The 7.6 fixed the issue and I have been able to set it up for the Forest level, however I cannot login as a student. I have tried adding the student to a security group on the forest level, and tried both student\username and [email protected]. I get this error, Logon failure: unknown user name or bad password. Stack Trace, [DirectoryServicesCOMException (0x8007052e): Logon failure: unknown user name or bad password. ] System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) +781 System.DirectoryServices.DirectoryEntry.Bind() +44 System.DirectoryServices.DirectoryEntry.get_AdsObject() +42 System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne) +98 System.DirectoryServices.DirectorySearcher.FindOne() +44 HAP.Web.Default.Page_Load(Object sender, EventArgs e) +1281 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25 System.Web.UI.Control.LoadRecursive() +71 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3064
TheScarfedOne Posted November 2, 2011 Posted November 2, 2011 Ok some slight progress on my issue. I installed V7.5. Got the setup completed - although the AD browser still didnt work, and I had some wierdness with layouts etc - but it at least me complete. I reused the created \appbin\.xml file and then updated to V7.6. All appears to work - as in my admin login does - but the AD browser in the Setup doesnt work still. Im guessing there is something in my AD layout it really doesnt like! What Ive no idea though. Nick - rather than post my AD structure here (obvious reasons why not) can you PM me your email addres and I will email some screenies of it to you to take a look at.
nickbro Posted November 3, 2011 Posted November 3, 2011 Hi, The 7.6 fixed the issue and I have been able to set it up for the Forest level, however I cannot login as a student. I have tried adding the student to a security group on the forest level, and tried both student\username and [email protected]. I get this error, Logon failure: unknown user name or bad password. Stack Trace, [DirectoryServicesCOMException (0x8007052e): Logon failure: unknown user name or bad password. ] System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) +781 System.DirectoryServices.DirectoryEntry.Bind() +44 System.DirectoryServices.DirectoryEntry.get_AdsObject() +42 System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne) +98 System.DirectoryServices.DirectorySearcher.FindOne() +44 HAP.Web.Default.Page_Load(Object sender, EventArgs e) +1281 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25 System.Web.UI.Control.LoadRecursive() +71 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3064 The username should be just be the username, no domain\, no @fqdn. The \ will cause issues
teklogic Posted November 3, 2011 Author Posted November 3, 2011 Hi, I am still getting the issue. This is my structure. HAP is hosted on Forest1 (This is my top DC in the forest) HAP Domain Details are linked to Student (this is the tree off the forest) I think it has something to with the multiple domains, I can create a user on the Forest1 and login perfectly. Do you think the issue is because HAP cannot read down the domain controllers? Craig
nickbro Posted November 3, 2011 Posted November 3, 2011 More than likely. I'll try and look into this for the next v7.7 release
TheScarfedOne Posted November 16, 2011 Posted November 16, 2011 Hi Nick Any ideas on my issue? Where could I start to troubleshoot why HAP cant look at my domain structure. DomainName.internal > Domain Computers > Domain Controllers > Domain Groups > Domain Members > Domain Services (HAP username is in this OU) > Domain Users >> Staff >> Students HAP user is a Domain Admin As a second query... with the new auth scheme, any way of getting it to play nicely with TMG/ISA for SSO? Thats what I loved about 6!
nickbro Posted November 16, 2011 Posted November 16, 2011 IS your error on the setup.aspx page? If so, can you try the attached dll
TheScarfedOne Posted November 21, 2011 Posted November 21, 2011 Urm... yea it was the setup.aspx page where I was getting the issue with the AD browser. Those DLLs broke something... browsing to setup now gives... Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS1061: 'ASP.setup_aspx' does not contain a definition for 'sg_TextChanged' and no extension method 'sg_TextChanged' accepting a first argument of type 'ASP.setup_aspx' could be found (are you missing a using directive or an assembly reference?) Source Error: Line 111: Line 112: Line 113: Line 114: Line 115: Source File: d:\Program Files\HAP7\Setup.aspx Line: 113
nickbro Posted November 21, 2011 Posted November 21, 2011 Try the dll in http://www.edugeek.net/forums/home-access-plus/85747-basic-help-needed-3.html#post757147
TheScarfedOne Posted November 22, 2011 Posted November 22, 2011 Changed the DLLs, and was getting the same error - until replaced the setup.aspx as well. Then - the issue is back as the AD Browser not displaying anything other than the progress loading bar.
nickbro Posted November 22, 2011 Posted November 22, 2011 (edited) @TheScarfedOne, going to need you to do some DEBUGGING for me: http://www.edugeek.net/forums/home-access-plus/86059-hap-json-debugging.html Also can you use the HAP Logging Setup to create a Event Viewer Log, and see if HAP+ is writing anything to it Edited November 22, 2011 by nickbro
TheScarfedOne Posted November 22, 2011 Posted November 22, 2011 No problem. Got the logger installed. And spotted this one... An error occurred in Home Access Plus+ Page: Setup API -> FillNode(DirectoryEntry room) System.DirectoryServices.DirectoryServicesCOMException (0x80072020): An operations error occurred. at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_Name() at HAP.Web.API.setup.FillNode(DirectoryEntry root) Message: An operations error occurred. Stack Trace: at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_Name() at HAP.Web.API.setup.FillNode(DirectoryEntry root) Will get firebug on my machine now as well...
nickbro Posted November 22, 2011 Posted November 22, 2011 Proper instructions for firebug are here: http://www.edugeek.net/forums/home-access-plus/86059-hap-json-debugging.html
nickbro Posted November 22, 2011 Posted November 22, 2011 I've looked into 0x80072020, and it looks like a permissions issue, which user are you using in the AD Setup Steps?
TheScarfedOne Posted November 22, 2011 Posted November 22, 2011 Right...im back at the Null Response stage again on the JSON request. The user is a Domain Admin. GetADTreeResult: null Does it matter where in the AD structure the user is?
CHiLL Posted November 22, 2011 Posted November 22, 2011 Right...im back at the Null Response stage again on the JSON request. The user is a Domain Admin. GetADTreeResult: null Does it matter where in the AD structure the user is? Doesn't for me, as the domain administrator account, and my own personal account are in two separate OUs. Both are Domain Admins.
nickbro Posted November 22, 2011 Posted November 22, 2011 This is a common issue, but I don't know how others have fixed the issue. I keep adjusting the code to allow for errors when loading the AD Structure. Can you try: Download the attached DLL and ASPX file From codeplex download the HAP+ Event Log Setup and run it Try the setup page again Have a look in the HAP+ Event Viewer Log in the Event Viewer for a reason why it failed
TheScarfedOne Posted November 23, 2011 Posted November 23, 2011 An error occurred in Home Access Plus+ Page: Setup API -> FillNode(DirectoryEntry room) System.DirectoryServices.DirectoryServicesCOMException (0x80072020): An operations error occurred. at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_Name() at HAP.Web.API.setup.FillNode(DirectoryEntry root) in N:\Visual Studio 2010\Projects\CHS Extranet\HAP.Web\API\Setup.cs:line 383 Message: An operations error occurred. Stack Trace: at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_Name() at HAP.Web.API.setup.FillNode(DirectoryEntry root) in N:\Visual Studio 2010\Projects\CHS Extranet\HAP.Web\API\Setup.cs:line 383
nickbro Posted November 23, 2011 Posted November 23, 2011 Have a look at How to use the System.DirectoryServices namespace in ASP.NET
TheScarfedOne Posted November 23, 2011 Posted November 23, 2011 Doesnt look like the double hop issue as im seeing A logon was attempted using explicit credentials. Subject: Security ID: IIS APPPOOL\HAP7AppPool Account Name: HAP7AppPool Account Domain: IIS APPPOOL Logon ID: 0x2889793 Logon GUID: {00000000-0000-0000-0000-000000000000} Account Whose Credentials Were Used: Account Name: wilkies Account Domain: Logon GUID: {00000000-0000-0000-0000-000000000000} Target Server: Target Server Name: DC-HERE.map.internal Additional Information: DC-HERE.map.internal Process Information: Process ID: 0x18b7c Process Name: C:\Windows\SysWOW64\inetsrv\w3wp.exe Network Information: Network Address: - Port: - This event is generated when a process attempts to log on an account by explicitly specifying that account’s credentials. This most commonly occurs in batch-type configurations such as scheduled tasks, or when using the RUNAS command. And no errors at the same time as the previous entry from the HAP event log
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now