Peter,
I have noticed that DNN 5.4.x is .NET 4 ready. I have tried using the newest framework and seems to work fine except WebDAV. Is there an element I'm missing? I've have the 'bindingRedirect' in the web.config and added 'requestValidationMode="2.0" to the httpRuntime.