+ Post New Thread
Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 40
Home Access Plus+ Thread, JSON troubleshooting in Projects:; Originally Posted by nickbro Can you replace the HAP.Web.dll file with the one I've attached, and try the booking system ...
  1. #16
    mattgrimley's Avatar
    Join Date
    Jun 2011
    Location
    Bedfordshire
    Posts
    316
    Thank Post
    35
    Thanked 21 Times in 19 Posts
    Blog Entries
    1
    Rep Power
    10
    Quote Originally Posted by nickbro View Post
    Can you replace the HAP.Web.dll file with the one I've attached, and try the booking system again. HAP+ should show as running v7.6.1101
    FYI (and as a complete aside, not wishing to derail my own thread):
    That hap.web.dll seems to break file downloads for me. I get a browser message of:

    Server Error in '/hap2' Application.
    --------------------------------------------------------------------------------

    Security Exception
    Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

    Exception Details: System.Security.SecurityException: The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security.

    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:


    [SecurityException: The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security.]
    System.Diagnostics.EventLog.FindSourceRegistration (String source, String machineName, Boolean readOnly, Boolean wantToCreate) +714
    System.Diagnostics.EventLog.SourceExists(String source, String machineName, Boolean wantToCreate) +460
    System.Diagnostics.EventLog.SourceExists(String source) +22
    HAP.Web.Logging.EventViewer.Log(String source, String message, EventLogEntryType type) +37
    RangeRequestHandlerBase.LogRequestHttpHeaders(Http Request Request) +494
    RangeRequestHandlerBase.ProcessRequest(HttpContext context) +182
    System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication.IExecutionStep.Execute() +625
    System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +270




    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237

  2. #17
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,520
    Thank Post
    37
    Thanked 501 Times in 432 Posts
    Rep Power
    113
    Can you download the HAP Logging Setup Utility and run it on the server

  3. #18
    mattgrimley's Avatar
    Join Date
    Jun 2011
    Location
    Bedfordshire
    Posts
    316
    Thank Post
    35
    Thanked 21 Times in 19 Posts
    Blog Entries
    1
    Rep Power
    10
    Quote Originally Posted by nickbro View Post
    Can you download the HAP Logging Setup Utility and run it on the server
    Okay, downloaded "Logging Setup.exe" and run it. It created a "Home Access Plus+" Event Log under "Applications and Services Logs" but it is empty. Do i need to do anything to get it to receive data?

  4. #19
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,520
    Thank Post
    37
    Thanked 501 Times in 432 Posts
    Rep Power
    113
    HAP+ will start writing stuff to it when an error occurs

  5. #20
    mattgrimley's Avatar
    Join Date
    Jun 2011
    Location
    Bedfordshire
    Posts
    316
    Thank Post
    35
    Thanked 21 Times in 19 Posts
    Blog Entries
    1
    Rep Power
    10
    Quote Originally Posted by nickbro View Post
    HAP+ will start writing stuff to it when an error occurs
    Okay, i'm getting some stuff written from the file browser, but nothing is getting written from the errors in bookingsystem.

  6. #21
    mattgrimley's Avatar
    Join Date
    Jun 2011
    Location
    Bedfordshire
    Posts
    316
    Thank Post
    35
    Thanked 21 Times in 19 Posts
    Blog Entries
    1
    Rep Power
    10
    This may be a complete distraction, but some of the odd behaviour i experienced when "creating" tickets (such as the page not refreshing and an "internal server error" pop-up) are solved by disabling the SMTP server.

    Unfortunately this has no impact on the deletion of a booking which still behaves as described above (with nothing written to the log). I suspect that is a different problem best left to a subsequent thread!

    Matt

  7. #22
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,520
    Thank Post
    37
    Thanked 501 Times in 432 Posts
    Rep Power
    113
    I will double check the delete routine checks to see what happens when SMTP is disabled

  8. #23
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,520
    Thank Post
    37
    Thanked 501 Times in 432 Posts
    Rep Power
    113
    Can you try the attached DLL, it will perform additional logging in the HAP+ Event Viewer

  9. #24
    mattgrimley's Avatar
    Join Date
    Jun 2011
    Location
    Bedfordshire
    Posts
    316
    Thank Post
    35
    Thanked 21 Times in 19 Posts
    Blog Entries
    1
    Rep Power
    10
    Still not playing.

    The only things being written to the log are file downloads from hap/download.
    I have tried it both with SMTP Server enabled and disabled..

  10. #25
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,520
    Thank Post
    37
    Thanked 501 Times in 432 Posts
    Rep Power
    113
    This is for the booking system now, when you run the booking system and remove a booking it should write some events to the HAP+ Event Log, some debug information

  11. #26
    mattgrimley's Avatar
    Join Date
    Jun 2011
    Location
    Bedfordshire
    Posts
    316
    Thank Post
    35
    Thanked 21 Times in 19 Posts
    Blog Entries
    1
    Rep Power
    10
    Quote Originally Posted by nickbro View Post
    This is for the booking system now, when you run the booking system and remove a booking it should write some events to the HAP+ Event Log, some debug information
    I've tried doing all sorts in the booking system - rebooted the server even, but nothing is written to the log. The only items getting written relate to file downloads via the mycomputer.aspx page.

  12. #27
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,520
    Thank Post
    37
    Thanked 501 Times in 432 Posts
    Rep Power
    113
    That's odd, this is what I'm getting from my logs
    Attachment 11946

    I get about 8 events when I remove a booking

  13. #28
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,520
    Thank Post
    37
    Thanked 501 Times in 432 Posts
    Rep Power
    113
    Here is an updated HAP.Web dll which has a few more debug event logging lines in

  14. #29
    mattgrimley's Avatar
    Join Date
    Jun 2011
    Location
    Bedfordshire
    Posts
    316
    Thank Post
    35
    Thanked 21 Times in 19 Posts
    Blog Entries
    1
    Rep Power
    10
    No Nick,

    I am totally not getting any of those types of messages (even with the last HAP.Web.dll you posted).

    I don't pretend to understand, but a google of "json post not working iis7" gave me this thread, which "sounded" oh-so-promising, but again nothing.. Some Problem with JSON
    Is there anything in there? They seem to be almost talking the same thing - with "GET" requests working, but no "POST" etc..

    I followed the instructions through in that thread - though adding the mimetype for .json seems irrelevant to HAP as i cant see any .json files.. is that a different "json" or perhaps just not applicable to this?

    all of the events that i get are file downloads and not one of them mentions JSON

    Thanks for all your efforts today!

    Matt

  15. #30
    mattgrimley's Avatar
    Join Date
    Jun 2011
    Location
    Bedfordshire
    Posts
    316
    Thank Post
    35
    Thanked 21 Times in 19 Posts
    Blog Entries
    1
    Rep Power
    10
    Okay,

    Accepting that there is clearly something wrong with my server that we can't quite pin down, i have set-up a brand new Windows 2008 R2 (x64) server and installed HAP+ with the DLL from this thread.

    Whilst i am still having a few problems, more of it is now working than it was, including the logging (yay!)

    I will detail the results of trying to make a booking below (red items are failures, green are successes!):

    1> I click on an available slot for my booking and get the "Booking Form" pop-up. I choose a Year and a Subject and click Book and the following happens:
    --a> An "Internal Server Error" message pop's up in the browser.
    --b> Fire-bug registers a "POST / 500 Internal Server Error" error

    --c> The emailed calendar invite IS sent and received fine
    --d> The display is NOT updated to show the new booking
    --e> The booking IS in the xml file and refreshing the page displays it.
    [COLOR=#000000]
    Deleting a booking now works as intended and sends a cancellation email.


    Whilst i dont appear to have anything written to the event log relating to the specific error, i am getting some other "information" events and 1 "error" event.

    The Error event looks like:

    Code:
    An error occurred in Home Access Plus+
    Page: Booking System JSON API
    System.IndexOutOfRangeException: Index was outside the bounds of the array.
       at HAP.Web.BookingSystem.iCalGenerator.GenerateCancel(Booking booking, DateTime date, Boolean emailadmins)
       at HAP.Web.API.BookingSystem.RemoveBooking(String Date, JSONBooking booking)
    Message:
    Index was outside the bounds of the array.
    Stack Trace:
       at HAP.Web.BookingSystem.iCalGenerator.GenerateCancel(Booking booking, DateTime date, Boolean emailadmins)
       at HAP.Web.API.BookingSystem.RemoveBooking(String Date, JSONBooking booking)
    and it comes after an "Information" event which shows:

    Code:
    Home Access Plus+ Info
    Page: Booking System JSON API
    Asking for an iCan Admin Cancel to be Generated and Sent
    Cheers in advance!

    Matt

SHARE:
+ Post New Thread
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Replies: 6
    Last Post: 27th October 2010, 04:42 PM
  2. Replies: 8
    Last Post: 23rd January 2008, 11:11 AM
  3. Replies: 0
    Last Post: 31st May 2007, 09:53 AM
  4. SCSI Troubleshooting
    By Ric_ in forum Hardware
    Replies: 6
    Last Post: 1st December 2006, 10:02 AM
  5. Mark Minasi Pocast on Network Troubleshooting
    By ChrisH in forum Wireless Networks
    Replies: 3
    Last Post: 5th July 2006, 12:38 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •