Jump to content

Recommended Posts

Posted
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. :(

Posted

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

Posted

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.

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:

 

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:

 

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

 

Cheers in advance!

 

Matt

Posted

Yay! Welcome back Edugeek!

 

My final update!!

 

On the new server, if i disable my email server in the setup.aspx, the rest of the system appears to function as intended. Items are created (the view is updated live) and deleted happily.

 

Is their much room for mistakes in the SMTP config, bearing in mind that fundamentally, emails were being sent?

 

Cheers,

matt

Posted

Hopefully should have a fix, or something inplace for this in v7.7.

 

Does your email server's admin user account have rights to "send on behalf of"?

 

What is your current email config (before you disabled it?). I know exchange supports not authenticating the user to send the emails, if you authenticate it will refuse the connection for some reason, though that might just be my setup (single ex2010 install with SMTP hub relay to county)

Posted
Hopefully should have a fix, or something inplace for this in v7.7.

 

Does your email server's admin user account have rights to "send on behalf of"?

 

What is your current email config (before you disabled it?). I know exchange supports not authenticating the user to send the emails, if you authenticate it will refuse the connection for some reason, though that might just be my setup (single ex2010 install with SMTP hub relay to county)

 

Well, my exchange is 2010 single install with SMTP hub relay to county too :)

 

My current setup (which was what i used prior to v7) is:

 

Address: serverxx.domain.local

Port: 25

SSL: No

SMTP User: none

SMTP Pass: none

From (Name): School Tech Support

From (Email): [email protected]

 

with that configuration, it does successfully send calendar invites to me - but seems to fail to move on to the next step gracefully.

I have tried putting a User/Pass in, but that seems not to work at all.. which i presume is what you were describing above.

 

 

Does your email server's admin user account have rights to "send on behalf of"?

Do you mean the user specified in the configuration? As i have been using no account, i presume not.. (although i do recieve a calendar request from my own account)..

 

Matt

Posted

@nickbro

 

Does the user you are booking for have an email address defined in the Mail field of their AD Properties?

It does, yes

 

@mattgrimley can you try the attached dlls, version 7.7.1116.1300

 

/hap/bookingsystem/ errors with:

Method not found: 'HAP.AD.UserInfo[] HAP.AD.ADUtils.FindUsers(HAP.Web.Configuration.OUVisibility)'.

 

/hap/setup.aspx errors with:

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?)

 

Matt

Posted

IT'S AALLLLIIIVVEEEE!!!

 

I'll do loads more testing tomorrow, but i just put those updates on and it is booking, refreshing, deleting bookings, refreshing, email invites AND cancellations.. All as expected!

 

Thanks so much for your persistence on this Nick. I will try these updates on my original server too (Despite the JSON stuff not responding as expected, im interested in seeing if that was all related to this!)

 

As i said, i'll put it more thoroughly through its paces tomorrow (i had similar problems with helpdesk etc which should all be related).

 

Cheers again,

matt

Posted

My quick test shows helpdesk stuff is working properly for me again too.

 

Tried it all on my production server (exact copy of the folders) and whilst the page now refreshes, i still get the "Unauthorised" message popping up when trying to delete stuff.

 

Either way, i care not.. I have no idea what's up with that server, so as soon as i get my SSL cert sorted out for the new one, i'll swap it out.

 

Thanks again for all your persistence!

 

Matt

Posted

Wooo :party:

 

Good to hear it's working now. You are using the latest v7.7 alpha release there, with some DEBUG stuff added in. If you have a look in the HAP+ Event Log on the server it may give some insight into why it wasn't working properly before.

 

Will get a few more bugs fixed and then I'll publish it, hopefully this weekend.

  • Thanks 1

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