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.
- Open the Run dialog, type inetmgr and click OK. This opens IIS Manager.
- 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).
- Right-click the node and select Manage web site -> Advanced settings…. Note the name of the value Application pool. Close this dialog.
- In the treeview to the left, locate and select the node Application pools.
- 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
- 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.