I had this exact problem and it was solved by unlocking the serverRuntimehost application configuration section . Command to run on the console:
%windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/serverRuntime
Haney source
share