I'm trying to figure out how to work IIS and how to host my asp.net applications. I ask the question, because it does not work. I am doing the right steps (as I think the right ones), but in the end I get a 404 error, in general, let me describe how I did, maybe I didn’t understand something. Please correct me if I did something wrong.
Installing IIS:
After I ticked the necessary components, and in Visual Studio I created a simple project Asp.Net WebApi. Built api with Post and Get methods, no matter what they do. It turns out if I run through Visual Studio, that is, the project is temporarily hosted on IIS Express, then I can easily see the results of the requests. Now I need to publish.
I chose IIS, then I chose FileSystem and indicated the path to some folder, I published well. Then I go to the IIS Manager. I tried here 2 ways in different ways:
The first is to create a site, specifying the physical path to the folder of the project publication, port 80, the host name localhost. So in the browser I used the following url localhost / api / Word. I get, error 404, error code 0x80070002.
The second way is not to create a separate site, but to add a virtual folder to the Default Web Site, specifying the path to the location of the project itself. Then I converted to an application. I'm trying to access using url: localhost / MyFirstApi / api / Word. Again, I get 404 and error code 0x80070002.
All steps are taken from the guides, no amateur. Can anyone help figure out?
Screen of the most result url:

