I am getting the error:
HTTP Error 500.21 - Internal Server Error Handler \"CloudConnectHandler\" has a bad module \"ManagedPipelineHandler\" in its module list
For me, I was getting this error message when using PUT or DELETE to WebAPI. I also tried re-registering .NET Framework as suggested but to no avail.
I was able to fix this by disabling WebDAV for my individual application pool, this stopped the 'bad module' error when using PUT or DELETE.
WebDAV Authoring Tools in the listDisable WebDAV in the top right.This link is where I found the instructions but it's not very clear.