Symptoms

When you scan a Microsoft IIS server the scan fails with the error "Could not obtain the IIS 7 Configuration Section 'sectionname'". On viewing the full exception, the COMException code returned from IIS is 0x80070032 - "The request is not supported".



Cause

One issue that has been seen is when the web.config of the specified web directory is configured with a serviceModel directive however the required server role is not installed.


<system.serviceModel>

</system.serviceModel>



Resolution


  • Firstly, determine if the serviceModel directive is required in the web.config - if it is not required then this should be removed from the web.config file.


  • If the serviceModel directive is required, the appropriate .NET services should be installed.