I am getting an error
This configuration section cannot be used at this path. This happens when the section is locked at a parent level.
due to config entry at line 27 given below. I tried fixing it by unlocking the section websocket in Configuration Editor in IIS but it didn't work. The service works fine as soon as I remove line 27.
   26:     </handlers>
   27:     <webSocket enabled="true" />
   28:   </system.webServer>
Below is complete Error Message:
This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".
Providing image for reference.
 Adding my configuration editor setting for WebSocket too.
Adding my configuration editor setting for WebSocket too.
The section in web.config is below:
  <system.webServer>
    <webSocket enabled="true" />
    <handlers>
      <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
      <remove name="OPTIONSVerbHandler" />
      <remove name="TRACEVerbHandler" />
      <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
    </handlers>
  </system.webServer>

 
    
 
    