Jump to content

Recommended Posts

Posted

After a bit of additional tweaking to the web.config file (removing the lines about endpoints and setting the svg mime type), I got everything running and could log in. however now when I try, I get a logon error saying unknown user or password (screenshot below). I've tried restarting IIS a few times, but the error remains, also tried domain admin, staff and pupil logons, all of which fail.

HAP logon.jpg

 

Any ideas?

Posted

Hi Nick

 

Im having a problem with the logon aswell. It works fine for me but any of the other student or staff accounts don't seem to work, i get this error

HapError.jpg

 

Also, i don't seem to be able to see the upload button in the Extended version?

Posted
The username/password entered into setup.aspx isn't correct. Make sure it's the administrator's username/password

Perfectly possible I typed it incorrectly - how do I now change it though? When I browse to ~/hap/setup.aspx, I just get the logon screen...

Posted

Thanks Nick. I've changed the password and re-instated the (as per the instructions on the setup page); I can still log in but everyone else gets the below message.

 

HAP logon 2.jpg

Posted
As it suggests something is wrong when it's trying to impersonate the current user, which is very odd. What User are you running the HAP+ application pool as?
Posted
As it suggests something is wrong when it's trying to impersonate the current user, which is very odd. What User are you running the HAP+ application pool as?

Do you mean the process model identity in IIS? If so, that is set "application pool identity"; if you mean the user specified in setup.aspx, that is administrator.

Posted
You answered both questions there, it's very strange that it isn't able to impersonate the current user, which is where the error is coming from. Is there anything in the event logs on the server which may give a clue
Posted

Application Event Viewer has two events from ASP:

 

This "information":

Log Name: Application

Source: ASP.NET 4.0.30319.0

Date: 9/23/2011 11:37:52 AM

Event ID: 1315

Task Category: Web Event

Level: Information

Keywords: Classic

User: N/A

Computer: 6002dc01c.SCH6002.Reading.sch.uk

Description:

Event code: 4005

Event message: Forms authentication failed for the request. Reason: The ticket supplied has expired.

Event time: 9/23/2011 11:37:52 AM

Event time (UTC): 9/23/2011 10:37:52 AM

Event ID: 798cc1720b4d430aadfc5e82398e5ccb

Event sequence: 2

Event occurrence: 1

Event detail code: 50202

 

Application information:

Application domain: /LM/W3SVC/1/ROOT/HAP-1-129612478727483203

Trust level: Full

Application Virtual Path: /HAP

Application Path: C:\inetpub\wwwroot\HAP\

Machine name: 6002DC01C

 

Process information:

Process ID: 1880

Process name: w3wp.exe

Account name: IIS APPPOOL\HAP

 

Request information:

Request URL: http://localhost/HAP/

Request path: /HAP/

User host address: ::1

User:

Is authenticated: False

Authentication Type:

Thread account name: IIS APPPOOL\HAP

 

Name to authenticate:

 

Custom event details:

 

Event Xml:

1315

4

3

0x80000000000000

42643

Application

6002dc01c.SCH6002.Reading.sch.uk

4005

Forms authentication failed for the request. Reason: The ticket supplied has expired.

9/23/2011 11:37:52 AM

9/23/2011 10:37:52 AM

798cc1720b4d430aadfc5e82398e5ccb

2

1

50202

/LM/W3SVC/1/ROOT/HAP-1-129612478727483203

Full

/HAP

C:\inetpub\wwwroot\HAP\

6002DC01C

1880

w3wp.exe

IIS APPPOOL\HAP

http://localhost/HAP/

/HAP/

::1

False

IIS APPPOOL\HAP

 

... followed by this "warning":

 

Log Name: Application

Source: ASP.NET 4.0.30319.0

Date: 9/23/2011 11:38:03 AM

Event ID: 1309

Task Category: Web Event

Level: Warning

Keywords: Classic

User: N/A

Computer: 6002dc01c.SCH6002.Reading.sch.uk

Description:

Event code: 3005

Event message: An unhandled exception has occurred.

Event time: 9/23/2011 11:38:03 AM

Event time (UTC): 9/23/2011 10:38:03 AM

Event ID: 3fc74ca032fd4ceeade4abed0e47765e

Event sequence: 24

Event occurrence: 1

Event detail code: 0

 

Application information:

Application domain: /LM/W3SVC/1/ROOT/HAP-1-129612478727483203

Trust level: Full

Application Virtual Path: /HAP

Application Path: C:\inetpub\wwwroot\HAP\

Machine name: 6002DC01C

 

Process information:

Process ID: 1880

Process name: w3wp.exe

Account name: IIS APPPOOL\HAP

 

Exception information:

Exception type: Exception

Exception message: Something is wrong

at HAP.AD.User.Impersonate()

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: http://localhost/HAP/default.aspx

Request path: /HAP/default.aspx

User host address: ::1

User: JoeBloggs

Is authenticated: True

Authentication Type: Forms

Thread account name: IIS APPPOOL\HAP

 

Thread information:

Thread ID: 7

Thread account name: IIS APPPOOL\HAP

Is impersonating: False

Stack trace: at HAP.AD.User.Impersonate()

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:

 

Event Xml:

1309

3

3

0x80000000000000

42644

Application

6002dc01c.SCH6002.Reading.sch.uk

3005

An unhandled exception has occurred.

9/23/2011 11:38:03 AM

9/23/2011 10:38:03 AM

3fc74ca032fd4ceeade4abed0e47765e

24

1

0

/LM/W3SVC/1/ROOT/HAP-1-129612478727483203

Full

/HAP

C:\inetpub\wwwroot\HAP\

6002DC01C

1880

w3wp.exe

IIS APPPOOL\HAP

Exception

Something is wrong

at HAP.AD.User.Impersonate()

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)

 

http://localhost/HAP/default.aspx

/HAP/default.aspx

::1

JoeBloggs

True

Forms

IIS APPPOOL\HAP

7

IIS APPPOOL\HAP

False

at HAP.AD.User.Impersonate()

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)

 

Hopefully they mean more to you than they do to me!

Posted
Is interactive logons disabled on your server, as HAP+ uses interactive logons to impersonate the user

No, "allow logon locally" is defined just to administrative groups, and "impersonate a client after logon" is not configured. I'm somewhat cautious about changing settings at such a high level - what else am I potentially exposing myself to by changing this? Is there anything I need to be aware of once I've changed it?

Posted

Thanks Nick, this stopped the error message i was getting. However i still can't access any of the Drives in the basic view with test student and staff accounts, i get an error that says "Error: Unauthorised Access You have attempted to access a restricted resource" and nothing shows in the extended view for these users.

 

Any idea which settings i need to change?

Posted
I've editted the HAP.AD to try interactive and network logon rights, see if the attached updated dll makes any difference

 

I had problems authenticating against, AD, and followed through this thread. Everything else worked, but as soon as I replaced the dll everything came to life.

Excellent project, really impressed with the booking system concept, especially dealing with SIMS!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...