TheScarfedOne Posted January 17, 2013 Posted January 17, 2013 Hi Nick Odd one, wierd issue. When booking a laptop, the admins arent getting the email anymore - but if you cancel it; the cancellation comes through! Only Laptop bookings look to be affected. Could you take a look for me? Since updating to 8.6 and now 8.7. Stuart
TheScarfedOne Posted January 17, 2013 Author Posted January 17, 2013 Yep, got me and my team listed by name, with a , and space between each entry. It's weird that we get the cancellations!!
TheScarfedOne Posted January 18, 2013 Author Posted January 18, 2013 Done a bit more digging. It sends the email to the user; but doesnt send it to the resource admins. To eliminate a white space issue - I listed just myself in there. Oddly, when you cancel - the resource admin gets the cancellation - so is it the new rules engine breaking something?
nickbro Posted January 18, 2013 Posted January 18, 2013 Odd, the rules execute after the email get sent, have you tried the dll attached to the other post?
TheScarfedOne Posted January 18, 2013 Author Posted January 18, 2013 Yep, I'm using that dll at the moment. I'm trying to track back to which version it stopped working. It's got to be somewhere in the send to admins bit on the initial booking, as the removal email gets sent to the resource admin.
nickbro Posted January 18, 2013 Posted January 18, 2013 This is the code in the book function, if the bookie is getting an email, it should in theory work for the admins, is anything getting logged in the event viewer as it failing? if (config.SMTP.Enabled) { iCalGenerator.Generate(b, DateTime.Parse(Date)); if (config.BookingSystem.Resources[b.Room].EmailAdmins) iCalGenerator.Generate(b, DateTime.Parse(Date), true); }
TheScarfedOne Posted January 18, 2013 Author Posted January 18, 2013 Hmmm yes, the bookie is getting the email - but I've reduced the three admin to one (me) and it doesn't come through. This does only apply to laptop type bookings and the initial confirmation. Room or equipment type bookings the resource admin correctly gets the confirmation too. The cancellation is received correctly in both cases
nickbro Posted January 18, 2013 Posted January 18, 2013 Anything in the event viewer? It should throw an error and log it in the web tracker and event viewer if it was failing for something. This code works correctly for me
TheScarfedOne Posted January 18, 2013 Author Posted January 18, 2013 Nothing in the event log, and I've not set up the web tracking yet. Code looks the same as mine
TheScarfedOne Posted January 18, 2013 Author Posted January 18, 2013 Mind you, after having multiple hap instances, I'm not sure if my hap event log is working. Not seen anything in it for a long time. Any way to remove and re add?
nickbro Posted January 18, 2013 Posted January 18, 2013 extremely odd, the only thing that's changed is the removal of some debug events. Attached dll should log in the application event log what admins it has to send to for the book function
TheScarfedOne Posted January 18, 2013 Author Posted January 18, 2013 Cool. Gimme a few to fire up work machine and VPN in. Will test this out for you now...
nickbro Posted January 18, 2013 Posted January 18, 2013 If you still have a separate Home Access Plus+ event log, you will need to delete it and any registry references to HAP+ so HAP+ can use the Application Event log. You should see logon events listing the application event log from HAP+
TheScarfedOne Posted January 18, 2013 Author Posted January 18, 2013 Ok, where in the registry am I looking. I've got a separate home access plus + log in event viewer
TheScarfedOne Posted January 18, 2013 Author Posted January 18, 2013 Regedit search to the rescue. All gone, but nothing logged to app log. No change in behaviour either :-s
nickbro Posted January 18, 2013 Posted January 18, 2013 HKLM\System\CurrentControlSet\Services\Eventlog Look for anything HAP+ related
nickbro Posted January 18, 2013 Posted January 18, 2013 Recycle the application pool, the log is created at app start
TheScarfedOne Posted January 18, 2013 Author Posted January 18, 2013 Ok. Yep. Found that entry. Removed. Recycled pool, saw it get recreated. Tried to book a resource that should generate an alert to admins, on laptops... Email generated to bookie but not admins. Created book a resource that should generate an alert to admins, on equipment.... Email generAted to both. Cancellations sent in all cases to admins and bookies. There are no entries in the app event log.
nickbro Posted January 18, 2013 Posted January 18, 2013 It should work, it does for me, attached is another dll to try Home Access Plus+ Info Page: HAP Booking Admin Email Sent booking to admins [email protected] Home Access Plus+ Info Page: HAP Booking Admin Email Saving iCal file Home Access Plus+ Info Page: HAP Booking Admin Email Finishing iCal Generation Home Access Plus+ Info Page: HAP Booking Admin Email Cycling through the admins Home Access Plus+ Info Page: HAP Booking Admin Email Loading booking information and generating iCal Home Access Plus+ Info Page: HAP Booking Admin Email Detecting Resource Type Home Access Plus+ Info Page: HAP Booking Admin Email Loading Resource and Email Templates
TheScarfedOne Posted January 18, 2013 Author Posted January 18, 2013 Nope, still nothing. I'm going to create a new app pool and iis site in case something has gone weird...
nickbro Posted January 18, 2013 Posted January 18, 2013 is the HAP+ event source being created in the event viewer?
TheScarfedOne Posted January 18, 2013 Author Posted January 18, 2013 Dense question...how would I know? There isn't a separate log file shown if that's what you mean? I did used to have the old install able one from the v7 days I think? Could it be some leftovers of this causing problems?
nickbro Posted January 18, 2013 Posted January 18, 2013 registry HKLM\System\CurrentControlSet\Services\Eventlog\Application\Sources
TheScarfedOne Posted January 18, 2013 Author Posted January 18, 2013 There's no sources node under application.....?
TheScarfedOne Posted January 18, 2013 Author Posted January 18, 2013 A Home Access Plus + key is created at hklm>system>ccs>services>eventlog>application but can't see anything else
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