hdevine643 Posted February 29, 2012 Posted February 29, 2012 Hello, Until a few days ago all users could logon to HAP with no issues. Now when any Domain Admin logs on they are presented with the following Server Error I have checked and at the same time an event is logged in the Event Viewer (Event: 1309, ASP.NET 4.0.30319.0). Any advise would be much appreciated. Event code: 3005 Event message: An unhandled exception has occurred. Event time: 29/02/2012 16:00:05 Event time (UTC): 29/02/2012 16:00:05 Event ID: 447d2041555b4b76bccf7142178506b0 Event sequence: 216 Event occurrence: 3 Event detail code: 0 Application information: Application domain: /LM/W3SVC/1/ROOT/HAP-1-129750024028686186 Trust level: Full Application Virtual Path: /HAP Application Path: C:\inetpub\wwwroot\HAP\ Machine name: WEBSERV Process information: Process ID: 7136 Process name: w3wp.exe Account name: IIS APPPOOL\HAP Exception information: Exception type: NullReferenceException Exception message: Object reference not set to an instance of an object. at HAP.AD.User..ctor(String username) at HAP.Web.UserCard.Ticket..ctor(XmlNode node) at HAP.Web.Default.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) Request information: Request URL: https://hap.omaghcbs.org:443/HAP/default.aspx Request path: /HAP/default.aspx User host address: 85.31.137.11 User: administrator Is authenticated: True Authentication Type: Forms Thread account name: IIS APPPOOL\HAP Thread information: Thread ID: 163 Thread account name: IIS APPPOOL\HAP Is impersonating: False Stack trace: at HAP.AD.User..ctor(String username) at HAP.Web.UserCard.Ticket..ctor(XmlNode node) at HAP.Web.Default.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) Custom event details:
hdevine643 Posted February 29, 2012 Author Posted February 29, 2012 Staff & Students can still logon with no issues. I tested by logging on as a techer, they were able to logon ok, then I added the teacher to the Domain Admins group, logged on again & got the same message. When I removed them from Domain Admins Group & logon they can again access with no errors. As far as I can tell the issue just happens for Domain Admins
nickbro Posted February 29, 2012 Posted February 29, 2012 By that i mean what user did you enter into the AD tab of the configuration page?
safcphil Posted March 1, 2012 Posted March 1, 2012 (edited) I was getting this error for users who had easylink disabled in the management console. Make sure that your domain admin group doesnt automatically disable easylink access because that will stop you accessing the site. As soon as I ticked the enable easylink box users could log on no problems. edit: hmmm Im actually still getting this for my systemadmin account. Only seems to affect the homepage, if you browse straight to the setup or myfiles extensions they load but the homepage generates this error. Thought it was the easylink thing but ive turned it back on now and its still happening. The only other thing I did was try to submit a test ticket on the helpdesk tab, other than that ive changed nothing since it was working. created a new user and added them to the domain admin group with easylink enabled. same error. everyone else fine. weird as it was working this morning fine. I edited the web.config file to deny anyone but domain admins access to the setup page as directed. could this be involved? Edited March 1, 2012 by safcphil
hdevine643 Posted March 1, 2012 Author Posted March 1, 2012 Yes I am able to access Setup page & drives by pasting in the correct url. On the settings page there is a red x against 'Active Directory Connection' The password field is blank, when I enter the administrator password and press save it states that the config is saved but the red x still shows. As for Easylink, is this something available in all AD versions or just C2K perhaps?
safcphil Posted March 1, 2012 Posted March 1, 2012 My active directory connection page is like that as well but obviously its working otherwise no one would be able to log and view their docs not just domain admins.
nickbro Posted March 1, 2012 Posted March 1, 2012 Don't hit save after putting the password in, it should automatically change to a tick by itself
nickbro Posted March 1, 2012 Posted March 1, 2012 It's a legacy thing. I developed HAP+ after seeing how bad easylink was. I used some of the group names, sorry.
hdevine643 Posted March 2, 2012 Author Posted March 2, 2012 Hello, just wondering if anyone has any furhter ideas on why my admins are unable to gain access to the main Hap page?
nickbro Posted March 2, 2012 Posted March 2, 2012 What is the error they get, can you copy and paste it. Try it from the server, as you may get more information
hdevine643 Posted March 2, 2012 Author Posted March 2, 2012 [[ATTACH=CONFIG]13227[/ATTACH] Event code: 3005 Event message: An unhandled exception has occurred. Event time: 29/02/2012 16:00:05 Event time (UTC): 29/02/2012 16:00:05 Event ID: 447d2041555b4b76bccf7142178506b0 Event sequence: 216 Event occurrence: 3 Event detail code: 0 Application information: Application domain: /LM/W3SVC/1/ROOT/HAP-1-129750024028686186 Trust level: Full Application Virtual Path: /HAP Application Path: C:\inetpub\wwwroot\HAP\ Machine name: WEBSERV Process information: Process ID: 7136 Process name: w3wp.exe Account name: IIS APPPOOL\HAP Exception information: Exception type: NullReferenceException Exception message: Object reference not set to an instance of an object. at HAP.AD.User..ctor(String username) at HAP.Web.UserCard.Ticket..ctor(XmlNode node) at HAP.Web.Default.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) Request information: Request URL: https://hap.omaghcbs.org:443/HAP/default.aspx Request path: /HAP/default.aspx User host address: 85.31.137.11 User: administrator Is authenticated: True Authentication Type: Forms Thread account name: IIS APPPOOL\HAP Thread information: Thread ID: 163 Thread account name: IIS APPPOOL\HAP Is impersonating: False Stack trace: at HAP.AD.User..ctor(String username) at HAP.Web.UserCard.Ticket..ctor(XmlNode node) at HAP.Web.Default.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) Custom event details:
nickbro Posted March 2, 2012 Posted March 2, 2012 Do your admins have a home directory defined in AD?
nickbro Posted March 2, 2012 Posted March 2, 2012 Are you using the Help Desk, it looks like something in the helpdesk ticket log is causing an issue where the user doesn't exist in AD. OPen ~/app_data/tickets.xml (I think, may be helpdesk.xml) with notepad, look at the usernames in there for any username that may not exist
hdevine643 Posted March 2, 2012 Author Posted March 2, 2012 (edited) Yes they have mapped home drives and up until a few days ago all admins were able to logon with no issues Edited March 2, 2012 by hdevine643
hdevine643 Posted March 2, 2012 Author Posted March 2, 2012 Hello, Yes there was a user account in the tickets file which no longer exists. I have deleted and all is working again. Thanks for all your help.
nickbro Posted March 2, 2012 Posted March 2, 2012 No problem, I'm glad I spotted it was doing something with the help desk. I'll add some code in HAP+ so this doesn't happen again, will in the v8 release
safcphil Posted March 5, 2012 Posted March 5, 2012 Are you using the Help Desk, it looks like something in the helpdesk ticket log is causing an issue where the user doesn't exist in AD. OPen ~/app_data/tickets.xml (I think, may be helpdesk.xml) with notepad, look at the usernames in there for any username that may not exist this worked for me too. thank you
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