Check you have write permission to the whole app_data directory.
Also try doing some HAP+ JSON Debugging
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.
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
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?
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!
Which version of IIS are you using?
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
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)
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
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?
Can you try this in the web.config file
Code:<modules runAllManagedModulesForAllRequests="true"> <remove name="WebDAVModule" /> </modules>
beneal (5th February 2013)
Thanks Nick, NM has decided we'll just live without webdav on that server now, but thanks for all your advice!
There are currently 1 users browsing this thread. (0 members and 1 guests)