beneal Posted September 13, 2012 Posted September 13, 2012 Hi all, Having done some major server upgrades over the summer we've moved HAP+ and now got 2 instances working so we can have seperate booking systems. Everything is great except bookings can't be removed in the interface on either system. The message pops up asking 'Are you sure' then when you click ok we get a dialogue box which just says 'Unathourized'. This happens for Admins and Teaching Staff. I'm thinking it looks like we've missed some permissions somewhere but we can't see what, and everything else is working as it should. Any ideas?
nickbro Posted September 13, 2012 Posted September 13, 2012 Check you have write permission to the whole app_data directory. Also try doing some http://www.edugeek.net/forums/home-access-plus/86059-hap-json-debugging.html
beneal Posted September 14, 2012 Author Posted September 14, 2012 As far as I can tell HAP has write permission to app_data. Json debugging gives me: URL Method Result Type Received Taken Initiator Wait Start Request Response Cache read Gap /hap/api/BookingSystem/Booking/14-9-2012?"2012-09-14T07:56:53.124Z" DELETE 401 text/html 196 B 78 ms JS Library XMLHttpRequest 8658 15 0 63 0 0
beneal Posted September 19, 2012 Author Posted September 19, 2012 I've been through the installation video again and check all the settings match, which they do. The only difference is we had to give HAP permissions using the icacls method as we couldn't find it using the way shown in the video - I don't know if that might be an indicator that something is wrong somewhere else?
beneal Posted October 25, 2012 Author Posted October 25, 2012 Anyone got any ideas on this? We've upgraded to V8 and everything else is great but we still have this issue. It's having problems carrying out the DELETE command, but we've no idea where to begin to sort it (not that it's stopped us trying). Obviously the 401 error suggests an authentication issue but everything else, adding bookings etc. works so we're really confused. We've tried various permutations of authentication on the application and higher up with no joy, and even adding the DELETE verb in the Handler Mappings - but we're pretty clueless in that area and nothing has worked. I've been through the V8 installation video and everything matches, so I wonder if it's something we have set differently from default somewhere else, rather than something we've missed. Any help would be much appreciated!
nickbro Posted October 25, 2012 Posted October 25, 2012 You may need to do this: Enable DELETE, PUT, MERGE verbs in IIS5 / IIS6 for the .svc extention in when using a ADO.NET REST service - wiibart.com, which you will need to do on the wildcard *.* isapi filter. Also make sure HAP+ isn't running on a server with WebDav. If it is you will need to use IIS Manager to disable the webdav module
beneal Posted October 26, 2012 Author Posted October 26, 2012 Thanks Nick, we're on IIS7. I couldn't really work out how to follow what was being done in the link you've posted, mainly due to the version difference (also my German isn't great ) I've tried fiddling about with adding the DELETE verb to some handler mappings but the best I can do is change the error message we get to 'Not found'. JSON debugging tells me it is a 404 error. I've also removed WebDav from handler mappings and Modules - does that need to be removed better? Any ideas? or a way to do the above link in IIS7? (sorry if I'm being thick)
nickbro Posted October 26, 2012 Posted October 26, 2012 For IIS7 make sure HAP+ isn't running on a server with WebDav. If it is you will need to use IIS Manager to disable the webdav module for the HAP+ application
beneal Posted November 6, 2012 Author Posted November 6, 2012 Thanks again Nick, I've tried removing the WebDav Module from the HAP application. It must be doing something as the error I get changed to 'Internal Server Error' So I also removed WebDav from the handler mappings, this changes the error to 'Not Found' I feel like I'm close... but no idea what else to try
beneal Posted February 1, 2013 Author Posted February 1, 2013 We fixed this by uninstalling webdav, as advised. Unfortunatley we're now in the posisiton that we need webdav for something we want to do with our iPads and could really do with it on this server. As I've mentioned we've tried disabling the module in the HAP application but that doesn't do it. Does anyone know if there's anything else we could try?
beneal Posted February 5, 2013 Author Posted February 5, 2013 Thanks Nick, NM has decided we'll just live without webdav on that server now, but thanks for all your advice!
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