Jump to content

Recommended Posts

Posted (edited)

Hi, I have a problem with the timetable plugin

 

It has imported from SIMS (I can see it all in the AppData\Timetables)

 

If as an admin I try and impersonate as user or UPN I get nothing, a student user with the UPN in their Employee ID field also gets the same

Timetable Error.png

 

Any suggestions greatly appreciated.

 

Guy

Edited by gomalley
  • 5 months later...
Posted

I've just been looking at this topic http://www.edugeek.net/forums/home-access-plus/167663-importing-timetable-sims-not-working.html and the reply by @Stuajnht , upon inspection I can then see that https:///hap/api/timetable/LoadUser/ does indeed display the XML for that student, so HAP is obviously recognising the EmployeeID field and tying that to the username, however the timetable.aspx page still just shows the header menu and a blank page.

 

I ahve tried making the change @Stuajnht suggested but it doesn't seem to have made a difference.

 

Any help greatly appreciated.

 

Thanks

Guy

Posted

Hi,

 

From the looks of the screenshot that you originally posted, it looks like a resource isn't loading properly. As you're using Chrome, try opening the developer tools (Ctrl + Shift + I) and swap to the network tab, then refresh the page (alternate browser steps here: http://www.edugeek.net/forums/home-access-plus/86059-hap-json-debugging.html)

 

See if there are any resources being shown in red, which are ones that have not loaded properly. If you click on one, it should let you see any HTML response from the HAP+ server, which may give you some more information.

 

The console tab in the developer tools may also tell you if there's an error, along with what may be causing it.

Posted

Spot on Stuajnht,

 

afterhap?/HAP/api/js/afterhap?/HAP/timetable.aspx=10.5.1014.1930 returns a 500 Internal Server Error and no Response, but I have no idea why!

 

 

*Note to self - click Post Reply after typing it!

Posted

Hi,

 

I'm not sure if the first "afterhap?" is just a copy+paste error, as the closest link that I have showing when the timetable loads is https:///hap/api/js/afterhap?/hap/timetable.aspx=10.4.927.1330

 

If so, this seems to try to load a file located in /Scripts/fullcalendar.min.js - I'd check to see if it's there. If not, it seems to be included in the HAP+ Web Core 10.5 update file (https://hap.codeplex.com/releases/view/135110)

hap-afterhap-url.png

hap-afterhap-code.png

hap-afterhap-location.png

Posted (edited)

Thanks

 

Yes it was a copy paste error, it matches yours, and the fullcalendar.min.js is present, just to be sure I have overwritten it with a fresh copy from the install file for 10.5 update but still the same behaviour.

 

Can you post the permissions on your scripts folder and that file specifically?

 

Thanks

Edited by gomalley
Posted

Hi,

 

Attached is the permissions for the folder and file (inherited). All the other accounts listed have full control, and the HAP user is the IIS App Pool one.

 

In the Chrome developer tools, if you click on the 500'ing response, then the response tab, is there an error message / description shown for it, or just completely blank? (excuse the crudeness of the drawing) If it's blank, then try having a look in the Event Viewer on the server, to see if there's anything logged there too.

 

I can get the HAP+ server to create a 500 error if I remove or rename the file, but as you've said, you've copied it from the zip again, so that shouldn't be the reason here. Removing the HAP permission from the file also seems to cause the problem too, so hopefully this should fix it.

hap-fillcalendar-permissions.png

hap-afterhap-steps.png

Posted

So my permissions are all the same, the response page still just shows "This request has no response data available"

 

I've looked in the logs, and see:

 

An error occurred in Home Access Plus+

 

Page: HAP.Web.API.MyPic

 

Creating Directory Search and Searching for then current user

Using filter: (&(objectClass=user) (sAMAccountName=it))

Found 1 results, processing 1st result

Found 0 thumnbnailPhotos

 

and

 

Event code: 4005

Event message: Forms authentication failed for the request. Reason: The ticket supplied was invalid.

Event time: 20/05/2016 12:43:10

Event time (UTC): 20/05/2016 11:43:10

Event ID: d80401cded7d46b2a602ff5da8151800

Event sequence: 82621

Event occurrence: 665

Event detail code: 50201

 

Application information:

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

Trust level: Full

Application Virtual Path: /HAP

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

Machine name: SERVERNAME

 

Process information:

Process ID: 21612

Process name: w3wp.exe

Account name: IIS APPPOOL\HAP

 

Request information:

Request URL:
https://SERVERPATH:443/HAP/api/test/?1463744591021

Request path: /HAP/api/test/

User host address: 10.7.65.165

User:

Is authenticated: False

Authentication Type:

Thread account name: IIS APPPOOL\HAP

 

Name to authenticate:

 

Custom event details:

 

So definitely something going wrong there, but honestly don't know what, I wondered if it was to do with the auto login in school, but now tested outside the network and still does it, although gives a Warning in Event Log that doesn't happen on internal visits:

 

Event code: 3005

Event message: An unhandled exception has occurred.

Event time: 20/05/2016 12:50:32

Event time (UTC): 20/05/2016 11:50:32

Event ID: 7aa4fc451f294cf89e2c3fe2273a0608

Event sequence: 1861

Event occurrence: 8

Event detail code: 0

 

Application information:

Application domain: /LM/W3SVC/1/ROOT/HAP2-1-131081348872327495

Trust level: Full

Application Virtual Path: /HAP2

Application Path: C:\inetpub\wwwroot\HAP2\

Machine name: SERVERNAME

 

Process information:

Process ID: 6344

Process name: w3wp.exe

Account name: IIS APPPOOL\HAPTest

 

Exception information:

Exception type: FileNotFoundException

Exception message: Could not find file 'C:\inetpub\wwwroot\HAP2\Scripts\moment.min.js'.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)

at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)

at System.IO.StreamReader..ctor(String path, Boolean detectEncodingFromByteOrderMarks)

at System.IO.File.OpenText(String path)

at HAP.Web.API.JS.ProcessRequest(HttpContext context)

at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 

 

 

Request information:

Request URL:
https://SERVERPATH:443/HAP2/api/js/afterhap?/HAP2/timetable.aspx=10.5.1014.1930

Request path: /HAP2/api/js/afterhap

User host address: 10.7.65.165

User: gomalley

Is authenticated: True

Authentication Type: Forms

Thread account name: IIS APPPOOL\HAPTest

 

Thread information:

Thread ID: 441

Thread account name: IIS APPPOOL\HAPTest

Is impersonating: False

Stack trace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)

at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)

at System.IO.StreamReader..ctor(String path, Boolean detectEncodingFromByteOrderMarks)

at System.IO.File.OpenText(String path)

at HAP.Web.API.JS.ProcessRequest(HttpContext context)

at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 

 

Custom event details:

 

 

Ignore the changes between HAP and HAP2, it is live and test environments, but they are a clone, I have just switched away from the live one as I am messing with permissions!

Posted

Hi,

 

I'll try and see what these errors may be, but it's mainly results from various edugeek posts.

 

So my permissions are all the same, the response page still just shows "This request has no response data available"

 

Unfortunately, that's the only response that I get too if I deliberately break things.

 

An error occurred in Home Access Plus+

 

Page: HAP.Web.API.MyPic

 

Creating Directory Search and Searching for then current user

Using filter: (&(objectClass=user) (sAMAccountName=it))

Found 1 results, processing 1st result

Found 0 thumnbnailPhotos

 

This doesn't seem to be anything to worry about: http://www.edugeek.net/forums/home-access-plus/109215-hap-error-event-log-user-picture-how-can-we-stop-logging.html

 

Event code: 4005

Event message: Forms authentication failed for the request. Reason: The ticket supplied was invalid.

Event time: 20/05/2016 12:43:10

Event time (UTC): 20/05/2016 11:43:10

Event ID: d80401cded7d46b2a602ff5da8151800

Event sequence: 82621

Event occurrence: 665

Event detail code: 50201

 

// Snip...

 

To do with SSO, etc. We don't use this here, so can't help you much more than these posts: http://www.edugeek.net/forums/home-access-plus/161062-sso-only-works-admins.html, http://www.edugeek.net/forums/home-access-plus/115020-404-when-trying-download-file.html, http://www.edugeek.net/forums/home-access-plus/155708-ad-problems.html

 

Event code: 3005

Event message: An unhandled exception has occurred.

Event time: 20/05/2016 12:50:32

Event time (UTC): 20/05/2016 11:50:32

Event ID: 7aa4fc451f294cf89e2c3fe2273a0608

Event sequence: 1861

Event occurrence: 8

Event detail code: 0

 

Application information:

Application domain: /LM/W3SVC/1/ROOT/HAP2-1-131081348872327495

Trust level: Full

Application Virtual Path: /HAP2

Application Path: C:\inetpub\wwwroot\HAP2\

Machine name: SERVERNAME

 

Process information:

Process ID: 6344

Process name: w3wp.exe

Account name: IIS APPPOOL\HAPTest

 

Exception information:

Exception type: FileNotFoundException

Exception message:
Could not find file 'C:\inetpub\wwwroot\HAP2\Scripts\moment.min.js'.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)

at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)

at System.IO.StreamReader..ctor(String path, Boolean detectEncodingFromByteOrderMarks)

at System.IO.File.OpenText(String path)

at HAP.Web.API.JS.ProcessRequest(HttpContext context)

at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 

 

 

Request information:

Request URL:
https://SERVERPATH:443/HAP2/api/js/afterhap?/HAP2/timetable.aspx=10.5.1014.1930

Request path: /HAP2/api/js/afterhap

 

// Snip...

 

It seems to be missing a file here (emboldened), but it's not one that I have installed on my server (probably as I'm still running 10.4 it seems). These posts seem to mention it not being included but should be, so not sure if they'll help: http://www.edugeek.net/forums/home-access-plus/158241-cal-aspx-blank.html, http://www.edugeek.net/forums/home-access-plus/160490-week-view-blank.html

 

Ignore the changes between HAP and HAP2, it is live and test environments, but they are a clone, I have just switched away from the live one as I am messing with permissions!

 

Is it possible to set up HAP+ from scratch on a different computer / server (assuming it's the same one due to the folder names) just in case there's something installed on the server messing things up?

  • Thanks 1
Posted

 

It seems to be missing a file here (emboldened), but it's not one that I have installed on my server (probably as I'm still running 10.4 it seems). These posts seem to mention it not being included but should be, so not sure if they'll help: http://www.edugeek.net/forums/home-access-plus/158241-cal-aspx-blank.html

 

I Downloaded moment.min.js from Moment.js | Home and put it in the scripts folder and it started working.

 

Many Thanks for your help on this.

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...