HTTP Error 403.14 - Forbidden - The Web Server Is Configured To Not List The Contents

While hosting the ASP.NET or ASP.NETet MVC application on IIS on new system, you might have faced this exception on browser

“HTTP Error 403.14 – Forbidden The Web Server is configured not to list the contents”.

To fix this issue, you might have to check the two possible settings in IIS.

First - Make sure that .NET Framework version value is v4.0.



For this, you have to do, as shown below.

  1. Open the Run dialog, type inetmgr and click OK. This opens IIS Manager.
  2. In the left tree-view, locate the Sites node and find the Default Web Site node under it (or the name of the site where the error message appears).
  3. Right-click the node and select Manage web site -> Advanced settings…. Note the name of the value Application pool. Close this dialog.
  4. In the treeview to the left, locate and select the node Application pools.
  5. In the list to the right, locate the Application pool with the same name as the one you noted in the Website settings. Right-click it and select Advanced settings
  6. Make sure that .NET Framework version value is v4.0. Click OK.

Second - ASP.NET is not registered on the Server

For this you have to go to.

>>Visual Studio.
>> Subsequently, go to Visual Studio Tool >> Visual Studio Command Prompt.
>> Now, go to the given path C:\Windows\Microsoft.NET\Framework64\v4.0.30319.
>> Run the aspnet_regiis.exe -ir.



Summary

We show the two possible fix for HTTP Error 403.14 – Forbidden The Web Server is configured to not to list the contents exception.