What does HTTP Error 403.14 mean?

Well, I have a Web Api, which configured as follows:

WebApiConfig.Cs

public static class WebApiConfig
{
    public static void Register(HttpConfiguration config)
    {
        // Web API routes
        config.MapHttpAttributeRoutes();

        config.Routes.MapHttpRoute(
            name: "DefaultApi",
            routeTemplate: "api/{controller}/{id}",
            defaults: new { id = RouteParameter.Optional }
        );
    }
}

It's my GlobalAsax

public class WebApiApplication : System.Web.HttpApplication
{
    protected void Application_Start()
    {
        GlobalConfiguration.Configure(WebApiConfig.Register);
    }
}

However, for some reason it is not finding the files. And generates the following problem:

HTTP Error 403.14 - Forbidden The Web server is configured not to list the contents of this directory.

Most likely causes:

A default document is not configured for the requested URL, and the search in > directory is not Enabled on the server.

Why does this happen?

How can I solve this problem?

Author: Comunidade, 2017-12-12

2 answers

As per the help of MS :

Why does this happen?

This problem occurs because the site does not have the search feature in the Directory enabled, and the default document is not configured

How can I solve this problem?

Open a command prompt, and then go to the IIS Express folder on your computer. For example, go to the following folder at a prompt Command:

C:\Program Files\IIS Express`  

Enter the following command and enter pressure:

appcmd set config /section:directoryBrowse /enabled:true
 1
Author: Marcelo de Andrade, 2017-12-12 12:47:13

To solve: Right click on WebService > Set as Start Page

Source: https://petshamarlow.blogspot.com/2013/06/erro-no-iis-80.html

In my case I had to right click on the project and choose"Set as StartUp Project" .

 -3
Author: superduper, 2020-02-01 22:06:32